diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-09-06 11:24:21 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-09-06 11:24:21 +0200 |
| commit | de7d9fb18fcc8a43e2d365203904514e89dd414e (patch) | |
| tree | 556a2bac136e8bcfef275e655180936734982654 /train.py | |
| parent | c2421b5c8eea3b3b3769ac64119e4445e616e963 (diff) | |
fix augment
Diffstat (limited to 'train.py')
| -rwxr-xr-x | train.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -121,5 +121,5 @@ for epoch in range(start_epoch, start_epoch + opt.niter + opt.niter_decay + 1): model.module.update_fixed_params() ### linearly decay learning rate after certain iterations - if epoch > opt.niter: + if opt.niter != 0 and epoch > opt.niter: model.module.update_learning_rate() |
