You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code above, there seems to be a typo. The bilinear flag should be passed to the function Up(). It has instead been passed to the .append() method of the list.
The number of channels once the input passes through either one of these layers is different. For "bilinear", the number of channels remains the same, whereas they decrease to half if a ConvTranspose2d is used. This gives an error in the network's .forward() method.
I wanted to directly use the model for some other application, but not sure how issue 2 should be solved. Maybe use a 1x1 convolution to reduce the channels to half?
The text was updated successfully, but these errors were encountered:
🐛 Bug
The UNet model definition has some bugs pertaining to bilinear interpolation.
Code sample
https://github.com/PyTorchLightning/pytorch-lightning/blob/2950f669834506f8e5845b318b0f25d52d19e331/pl_examples/models/unet.py#L35-L37
In the code above, there seems to be a typo. The
bilinear
flag should be passed to the functionUp()
. It has instead been passed to the.append()
method of the list.https://github.com/PyTorchLightning/pytorch-lightning/blob/2950f669834506f8e5845b318b0f25d52d19e331/pl_examples/models/unet.py#L101-L104
The number of channels once the input passes through either one of these layers is different. For "bilinear", the number of channels remains the same, whereas they decrease to half if a
ConvTranspose2d
is used. This gives an error in the network's.forward()
method.I wanted to directly use the model for some other application, but not sure how issue 2 should be solved. Maybe use a 1x1 convolution to reduce the channels to half?
The text was updated successfully, but these errors were encountered: