Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
priyakasimbeg committed Dec 7, 2023
1 parent fd1593c commit 82aecdc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def __init__(self,

if use_layer_norm:
size = int(size)
norm_layer = nn.LayerNorm([out_chans, size, size], eps=1e-06)
norm_layer = nn.LayerNorm
else:
norm_layer = nn.InstanceNorm2d(out_chans)
if use_tanh:
Expand All @@ -131,11 +131,11 @@ def __init__(self,
activation_fn = nn.LeakyReLU(negative_slope=0.2, inplace=True)
self.conv_layers = nn.Sequential(
nn.Conv2d(in_chans, out_chans, kernel_size=3, padding=1, bias=False),
norm_layer,
norm_layer([out_chans, size, size], eps=1e-06),
activation_fn,
nn.Dropout2d(dropout_rate),
nn.Conv2d(out_chans, out_chans, kernel_size=3, padding=1, bias=False),
norm_layer,
norm_layer([out_chans, size, size], eps=1e-06),
activation_fn,
nn.Dropout2d(dropout_rate),
)
Expand Down

0 comments on commit 82aecdc

Please sign in to comment.