Skip to content

Commit 1053517

Browse files
fixed bug regarding argparse
1 parent 0ede07a commit 1053517

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

GAN/DCGAN/training.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,14 @@ def training(opt):
170170
default='', help='save and load location of weights')
171171
parser.add_argument('--logs', type=str,
172172
default='', help='save log files to')
173-
parser.add_argument("epochs", type=int, default=20,
173+
parser.add_argument("--epochs", type=int, default=20,
174174
help='number of epochs to train')
175175
parser.add_argument('--batch-size', type=int, default=128,
176176
help='total batch size for all GPUs')
177-
parser.add_argument('lr', type=float, default=2e-4,
177+
parser.add_argument('--lr', type=float, default=2e-4,
178178
help='learning rate to use')
179179

180-
parser.add_argument('resume', type=bool, default=True,
180+
parser.add_argument('--resume', type=bool, default=True,
181181
help='should use the last saved weights')
182182
opt = parser.parse_args()
183183
training(opt)

0 commit comments

Comments
 (0)