yolov3训练出现错误,代码问题

RuntimeError: Sizes of tensors must match except in dimension 2. Got 7 and 85 (The offending index is 0)
我查了下应该是datasets.py文件有问题

img

程序里面from utils.utils import xyxy2xywh, xywh2xyxy 好像把第一个utils识别成utils文件里面的utils.py了,导致说第二个utils在utils.py中找不到
utils.py中的程序也有相关问题

img


这种怎么修改呢?

1.给第二个utils换个名字,比如general,然后整个工程里面的所有第二个utils全部改掉试试看
2.将第一个文件夹的utils右键,将目录标记为-》源 根 ,再试试看能不能找到

img

你的conv2代码是什么

你的完整报错发给我看看

别发图片,你发代码过来