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

Sizes of tensors must match except in dimension 0. Got 2 and 1 in dimension 1 #374

Open
sssimpleboy opened this issue Aug 23, 2023 · 1 comment

Comments

@sssimpleboy
Copy link

作者您好,我在验证阶段,我的数据集打包失败,请问应该怎么办呢?
我试过只打包图片,可以成功,但是后续计算损失之类的,我还没改
1692767494474

@sssimpleboy
Copy link
Author

只要验证时候batch设的大于1就会报错,所以我现在只能设成1 .
但是设成1的话,模型就不能多卡验证。。 所以我就自己重写了个validate 去单卡验证,但是这样又不能 边训练边验证。。
甚是苦恼 。

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

1 participant