-
Notifications
You must be signed in to change notification settings - Fork 427
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
AdaptiveAvgPool2d #27
Comments
I have the same problem. How did you solve it? |
1 similar comment
I have the same problem. How did you solve it? |
Hi, how do you want your output? The line "nn.AdaptiveAvgPool2d(1)" means 1 is the output size and your output will be of height 1 and width 1. |
BatchNorm requires at least 2 values per channel for mean and variance estimation. So, in training mode, please make sure that your batch_size is larger than 1. |
what if batch_size is 1, can I just replace |
Why is this nn.AdaptiveAvgPool2d(1) done here?
class ASPPPooling(nn.Sequential):
I am doing segmentation task and this abive pooling changes my output from torch.Size([1, 256, 16, 16]) to torch.Size([1, 256, 1, 1])
giving the error,
"Expected more than 1 value per channel when training, got input size torch.Size([1, 256, 1, 1])"
What could have gone wrong?
The text was updated successfully, but these errors were encountered: