You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifself.isTrain: # define a discriminator; conditional GANs need to take both input and output images; Therefore, #channels for D is input_nc + output_nc
Copy file name to clipboardExpand all lines: options/base_options.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,8 @@ def initialize(self, parser):
28
28
parser.add_argument('--model', type=str, default='cycle_gan', help='chooses which model to use. [cycle_gan | pix2pix | test | colorization]')
29
29
parser.add_argument('--input_nc', type=int, default=3, help='# of input image channels: 3 for RGB and 1 for grayscale')
30
30
parser.add_argument('--output_nc', type=int, default=3, help='# of output image channels: 3 for RGB and 1 for grayscale')
31
-
parser.add_argument('--ngf', type=int, default=64, help='# of gen filters in first conv layer')
32
-
parser.add_argument('--ndf', type=int, default=64, help='# of discrim filters in first conv layer')
31
+
parser.add_argument('--ngf', type=int, default=64, help='# of gen filters in the last conv layer')
32
+
parser.add_argument('--ndf', type=int, default=64, help='# of discrim filters in the first conv layer')
33
33
parser.add_argument('--netD', type=str, default='basic', help='specify discriminator architecture [basic | n_layers | pixel]. The basic model is a 70x70 PatchGAN. n_layers allows you to specify the layers in the discriminator')
Copy file name to clipboardExpand all lines: options/train_options.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ def initialize(self, parser):
33
33
parser.add_argument('--lr', type=float, default=0.0002, help='initial learning rate for adam')
34
34
parser.add_argument('--gan_mode', type=str, default='lsgan', help='the type of GAN objective. [vanilla| lsgan | wgangp]. vanilla GAN loss is the cross-entropy objective used in the original GAN paper.')
35
35
parser.add_argument('--pool_size', type=int, default=50, help='the size of image buffer that stores previously generated images')
0 commit comments