Pytorch-cyclegan-and-pix2pix: How to change the max epoch when training?

Created on 29 May 2020  路  2Comments  路  Source: junyanz/pytorch-CycleGAN-and-pix2pix

The default epoch is 200, but how to change it? I can't find which parameter to adjust it.
IF I want to training 400 epoch?
Thank you

Most helpful comment

From the train.py --help output:

  --n_epochs N_EPOCHS   number of epochs with the initial learning rate
                        (default: 100)
  --n_epochs_decay N_EPOCHS_DECAY
                        number of epochs to linearly decay learning rate to
                        zero (default: 100)

So in your case, python train.py --n_epochs 300 --n_epochs_decay 100

All 2 comments

From the train.py --help output:

  --n_epochs N_EPOCHS   number of epochs with the initial learning rate
                        (default: 100)
  --n_epochs_decay N_EPOCHS_DECAY
                        number of epochs to linearly decay learning rate to
                        zero (default: 100)

So in your case, python train.py --n_epochs 300 --n_epochs_decay 100

From the train.py --help output:
--n_epochs N_EPOCHS number of epochs with the initial learning rate
(default: 100)
--n_epochs_decay N_EPOCHS_DECAY
number of epochs to linearly decay learning rate to
zero (default: 100)

So in your case, python train.py --n_epochs 300 --n_epochs_decay 100

Get it! Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaureenZOU picture MaureenZOU  路  4Comments

TheIllusion picture TheIllusion  路  5Comments

wjx2 picture wjx2  路  3Comments

roypratyush picture roypratyush  路  3Comments

filmo picture filmo  路  3Comments