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
Hello,
in unet.py you create ConvBlock-objects with (for example) this call: self.conv1 = ConvBlock(n_channel_in, 32, residual, activation)
But the constructor of ConvBlock is __init__(self, in_channels, out_channels, dropout=False, norm='batch', residual=True, activation='leakyrelu', transpose=False), resulting in self.dropout being assigned to residual and self.norm being set to activation.
You probably wanted to call it like this: self.conv1 = ConvBlock(n_channel_in, 32, residual=residual, activation=activation) and so on.
Hello,
in
unet.py
you createConvBlock
-objects with (for example) this call:self.conv1 = ConvBlock(n_channel_in, 32, residual, activation)
But the constructor of
ConvBlock
is__init__(self, in_channels, out_channels, dropout=False, norm='batch', residual=True, activation='leakyrelu', transpose=False)
, resulting inself.dropout
being assigned toresidual
andself.norm
being set toactivation
.You probably wanted to call it like this:
self.conv1 = ConvBlock(n_channel_in, 32, residual=residual, activation=activation)
and so on.Minimal example:
The text was updated successfully, but these errors were encountered: