8000 changed the learning rate · caffeine-coder1/computer_vision@7f30809 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f30809

Browse files
changed the learning rate
1 parent 73eaf2e commit 7f30809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GAN/WGAN/training.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def training(opt):
2727

2828
# ~~~~~~~~~~~~~~~~~~~ as per WGAN paper ~~~~~~~~~~~~~~~~~~~ #
2929

30-
lr = opt.lr if opt.lr else 5e-5
30+
lr = opt.lr
3131
CRITIC_TRAIN_STEPS = 5
3232
WEIGHT_CLIP = 0.01
3333

@@ -203,7 +203,7 @@ def training(opt):
203203
help='number of epochs to train')
204204
parser.add_argument('--batch-size', type=int, default=128,
205205
help='total batch size for all GPUs')
206-
parser.add_argument('--lr', type=float, default=2e-4,
206+
parser.add_argument('--lr', type=float, default=5e-5,
207207
help='learning rate to use')
208208

209209
parser.add_argument('--resume', type=bool, default=True,

0 commit comments

Comments
 (0)
0