diff options
| author | Jun-Yan Zhu <junyanz@users.noreply.github.com> | 2017-09-23 20:47:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-23 20:47:29 -0700 |
| commit | 7f0c22e9c9d7e293ab210d50bb92dcc817b9c597 (patch) | |
| tree | 59d7bcec3473d2e16d1f357bb466e243b5e59019 /models/networks.py | |
| parent | 75c16069b6fa395c2dfa740602d088764ff09c14 (diff) | |
Update networks.py
Diffstat (limited to 'models/networks.py')
| -rw-r--r-- | models/networks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/networks.py b/models/networks.py index 0410ca3..6cf4169 100644 --- a/models/networks.py +++ b/models/networks.py @@ -325,7 +325,7 @@ class NLayerDiscriminator(nn.Module): use_bias = norm_layer == nn.InstanceNorm2d kw = 4 - padw = int(np.ceil((kw-1)/2)) + padw = 1 sequence = [ nn.Conv2d(input_nc, ndf, kernel_size=kw, stride=2, padding=padw), nn.LeakyReLU(0.2, True) |
