Skip to content

Commit 6c382ff

Browse files
committed
70x70 patch gan
1 parent 01ce88e commit 6c382ff

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

models/deepunet.py

-5
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,6 @@ def forward(self, x):
177177

178178

179179
class DeepUNetUpSample(nn.Module):
180-
"""
181-
TODO:
182-
attention features will be added
183-
"""
184-
185180
def __init__(self, in_channels, out_channels, bias=True, dropout=False):
186181
super(DeepUNetUpSample, self).__init__()
187182
self.pool = nn.MaxUnpool2d(2, 2)

models/patch_gan.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,11 @@ def __init__(self, dim=64, norm='batch', sigmoid=True):
3030
# 64 x 64
3131
layers.append(self._building_block(self.dim * 2, self.dim * 4))
3232

33-
# 32 x 32
34-
layers.append(self._building_block(self.dim * 4, self.dim * 8))
35-
36-
# 31 x 31
33+
# 63 x 63
3734
layers.append(
38-
self._building_block(self.dim * 8, self.dim * 8, stride=1))
35+
self._building_block(self.dim * 4, self.dim * 8, stride=1))
3936

40-
# 30 x 30
37+
# 62 x62
4138
layers.append(
4239
nn.Sequential(
4340
nn.Conv2d(self.dim * 8, 1, 4, 1, 1),

0 commit comments

Comments
 (0)