cv516Buaa / tph-yolov5

GNU General Public License v3.0
707 stars 170 forks source link

RuntimeError: The size of tensor a (16) must match the size of tensor b (4) at non-singleton dimension 1 #52

Open huranzhijian opened 1 year ago

huranzhijian commented 1 year ago

My own imageSize is 1280 * 10, and it occured when I train my datesets. image

huranzhijian commented 1 year ago

@cv516Buaa The yaml that i uses is yolov5l-xs-tr-cbam-spp-bifpn.

rothfa commented 1 year ago

@huranzhijian this worked for me https://blog.csdn.net/qq_55621259/article/details/125943353

You can also try to change the Backbone and add cat to the head.