Skip to content

Commit

Permalink
fix: typos and class name
Browse files Browse the repository at this point in the history
  • Loading branch information
pnsuau committed Mar 19, 2021
1 parent 7b8fd87 commit 6462374
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions models/modules/resnet_architecture/mobile_resnet_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@ def forward(self, x):
return torch.reshape(out.unsqueeze(1),(1,1,self.out_feat,self.out_feat))


class mobile_resnet_block_attn(nn.Module):
class MobileResnetBlock_attn(nn.Module):
def __init__(self, channel, kernel, stride, padding):
super(mobile_resnet_block_attn, self).__init__()
super(MobileResnetBlock_attn, self).__init__()
self.channel = channel
self.kernel = kernel
self.strdie = stride
self.stride = stride
self.padding = padding
self.conv1 = SeparableConv2d(channel, channel, kernel, stride, 0)
self.conv1_norm = nn.InstanceNorm2d(channel)
Expand Down Expand Up @@ -329,7 +329,7 @@ def __init__(self, input_nc, output_nc, ngf=64, n_blocks=9, use_spectral=False,

self.resnet_blocks = []
for i in range(n_blocks):
self.resnet_blocks.append(mobile_resnet_block_attn(ngf * 4, 3, 1, 1))
self.resnet_blocks.append(MobileResnetBlock_attn(ngf * 4, 3, 1, 1))
self.resnet_blocks[i].weight_init(0, 0.02)

self.resnet_blocks = nn.Sequential(*self.resnet_blocks)
Expand Down

0 comments on commit 6462374

Please sign in to comment.