diff options
| author | junyanz <junyanz@berkeley.edu> | 2017-09-24 00:21:28 -0700 |
|---|---|---|
| committer | junyanz <junyanz@berkeley.edu> | 2017-09-24 00:21:28 -0700 |
| commit | b853b0bd24eac9cc73366c914c496cde1225ff39 (patch) | |
| tree | 281b8c71d9f9254631861224b8c16ca1120a827b | |
| parent | d6d90bffee0bd74826e7700110819f6a35f62611 (diff) | |
| parent | 7f0c22e9c9d7e293ab210d50bb92dcc817b9c597 (diff) | |
Merge branch 'master' of https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix
| -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) |
