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 39acbe0 commit 515f16b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@ def __init__(self,

self.up_conv = nn.ModuleList()
self.up_transpose_conv = nn.ModuleList()
# size = size * 2

for _ in range(num_pool_layers - 1):
size = int(size * 2)
self.up_transpose_conv.append(
TransposeConvBlock(ch * 2, ch, use_tanh, use_layer_norm, size))
size = int(size * 2)
self.up_conv.append(
ConvBlock(ch * 2, ch, dropout_rate, use_tanh, use_layer_norm, size))
ch //= 2

size = int(size * 2)
self.up_transpose_conv.append(
TransposeConvBlock(ch * 2, ch, use_tanh, use_layer_norm, size))
size = int(size * 2)
self.up_conv.append(
nn.Sequential(
ConvBlock(ch * 2, ch, dropout_rate, use_tanh, use_layer_norm, size),
Expand Down

0 comments on commit 515f16b

Please sign in to comment.