Closed rishab-sharma closed 4 years ago
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 512, 1, 1])
I tried to use the code of your PPM Decoder without DeepSup with a Resnet50 encoder...It breaks at pool_scale(conv5)
Where one of the scales leads to 1x1 map, followed by a BN.
This is resolved by making the net.eval() call, but what to do during training?
I have this problem as well. Did you manage to resolve it?
Edit: Never mind, I forgot BN doesn't make sense if the batch size is 1 during training.
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 512, 1, 1])
I tried to use the code of your PPM Decoder without DeepSup with a Resnet50 encoder...It breaks at pool_scale(conv5)
Where one of the scales leads to 1x1 map, followed by a BN.
This is resolved by making the net.eval() call, but what to do during training?