Closed SeanCho1996 closed 4 years ago
Just like the error said, there were not enough values to unpack since you didn't set the se-loss on
Hi, i also training with single GPU. I have replace SyncBatchNorm with BatchNorm2d, this problem occurred: ValueError:expected 4D input (got 3D input) so i use the BatchNorm1d, and it output: ValueError:expected 2D or 3D input (got 4D input) So the input should be no problem, this is a problem caused by the BN layer. Do you have any suggestions?
@tinaZZer A simple solution is to change norm_layer(ncodes)
here to nn.BatchNorm1d(ncodes)
.
@wuhuikai I solved the problem, thanks for your solution!
Hi there, I'm currently trying to train your network with DeeplabV3 model and pascal_voc dataset, and the problem is that I only have one GPU and it's not that powerful, so as mentioned in other issues, I have replace the
SyncBatchNorm
with normalBatchNorm
, yet I have this problem with output size:the script I ran is :
My pytorch version is 1.4.0.
Do yo have any idea how the problem can be solved? Thanks in advance!