Yolov5_tf icon indicating copy to clipboard operation
Yolov5_tf copied to clipboard

Dimensions of inputs should match

Open ycdhqzhiai opened this issue 5 years ago • 6 comments

训练yolov5报错 https://github.com/avBuffer/Yolov5_tf/blob/ef9b214a7b56ed9a0e9ba2258528dd5df609aae4/core/yolov5.py#L215

ycdhqzhiai avatar Aug 25 '20 05:08 ycdhqzhiai

Yes, I have the same problem

vvtian avatar Sep 16 '20 02:09 vvtian

@vvtian 可以看看https://github.com/ycdhqzhiai/Yolov5_Tensorflow

ycdhqzhiai avatar Sep 16 '20 04:09 ycdhqzhiai

Yes, I have the same problem

have you solved this problem??

jm5948 avatar Nov 15 '20 07:11 jm5948

Hey All, Thanks, I've fixed the error.

avBuffer avatar Nov 17 '20 02:11 avBuffer

Hey All, Thanks, I've fixed the error.

in the new version ,this bug is seemed not fix

Linaom1214 avatar Nov 22 '20 15:11 Linaom1214

i think i found the error. in train.py line 203 _, summary, train_step_loss, global_step_val = self.sess.run( [train_op, self.write_op, self.loss, self.global_step], feed_dict={self.input_data: train_data[0], self.label_sbbox: train_data[3], self.label_mbbox: train_data[2], self.label_lbbox: train_data[1], self.true_sbboxes: train_data[4], self.true_mbboxes: train_data[5], self.true_lbboxes: train_data[6], self.trainable: True,})

the label_sbbox's index in train_data is 3,but author write 1, and the label_lbbox is 1 but author write3 this is the evidence 1625556193

but i don't know why i use yolov3 or yolov4 as the net_type , the error above is not happend

Tracy-git avatar Jul 06 '21 07:07 Tracy-git