Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: The expanded size of the tensor (1) must match the existing size (80) at non-singleton dimension 3. Target sizes: [1, 3, 1, 1, 2]. Tensor sizes: [3, 80, 80, 2] #35

Open
Liuruifeng29 opened this issue Aug 22, 2023 · 3 comments

Comments

@Liuruifeng29
Copy link

RuntimeError: The expanded size of the tensor (1) must match the existing size (80) at non-singleton dimension 3. Target sizes: [1, 3, 1, 1, 2]. Tensor sizes: [3, 80, 80, 2]

有遇到这个问题的吗,换了一个权重文件就报这个错误

@wujunyi1412
Copy link

RuntimeError: The expanded size of the tensor (1) must match the existing size (80) at non-singleton dimension 3. Target sizes: [1, 3, 1, 1, 2]. Tensor sizes: [3, 80, 80, 2]

有遇到这个问题的吗,换了一个权重文件就报这个错误

你模型的版本错了,试试6.1

@Liuruifeng29
Copy link
Author

就是我用其他的权重文件没问题,换了一个就报这个错误了

@Cinnaio
Copy link

Cinnaio commented Apr 14, 2024

我也是这个报错 训练模型用的是yolov5 version5
但是换成了https://github.com/cnyvfang/labelGo-Yolov5AutoLabelImg/releases/tag/source 就好了

该项目已支持最新版本YOLOv5,如需要使用支持YOLOv5 version5的旧版本,可以在Release中找到旧版本代码。

这个是作者在readme里面写的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants