Skip to content

Commit cb0c20b

Browse files
committed
Start of changing models, loss, and core logic
1 parent bf0a41b commit cb0c20b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/aging_gan/model.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import torch.nn.utils as nn_utils
33
import segmentation_models_pytorch as smp
44

5+
56
# Discriminator: PatchGAN 70x70
67
class PatchDiscriminator(nn.Module):
78
def __init__(self, in_channels=3, ndf=48):
@@ -22,9 +23,7 @@ def __init__(self, in_channels=3, ndf=48):
2223
for i in range(3):
2324
stride = 2 if i < 2 else 1
2425
layers += [
25-
nn_utils.spectral_norm(
26-
nn.Conv2d(nf, nf * 2, 4, stride, 1)
27-
),
26+
nn_utils.spectral_norm(nn.Conv2d(nf, nf * 2, 4, stride, 1)),
2827
nn.InstanceNorm2d(nf * 2, affine=True),
2928
nn.LeakyReLU(0.2),
3029
]

0 commit comments

Comments
 (0)