-
Notifications
You must be signed in to change notification settings - Fork 151
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
train出现尺寸不对 #1
Comments
你是不是在B站问过啦 |
对,已经解决啦,多谢大佬 |
同问 |
怎么解救呀 |
batch设置偶数看看把 |
大佬,我把batchsize已经设置为2,但是在多卡训练的时候还是出现了这个错误,该怎么办呢 raise ValueError('Expected more than 1 value per channel when training, got input size {}'.format(size)) |
你几个卡? |
@bubbliiiing 大佬,我也遇到这个问题了,batch设成偶数还是会报错,有四张卡 |
分配到每个卡上的是偶数就可以应该 |
@bubbliiiing 大佬,代码里面batch已经是偶数了,但在服务器上只能跑50轮,第51轮就报这个错误 |
截图看看呢 |
你的训练参数 |
……你服务器单卡? |
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256, 1, 1])
The text was updated successfully, but these errors were encountered: