updates
This commit is contained in:
parent
a17280ac72
commit
1ea87c49c4
4
train.py
4
train.py
|
@ -105,9 +105,9 @@ def main(opt):
|
||||||
|
|
||||||
# Update scheduler (manual) at 0, 54, 61 epochs to 1e-3, 1e-4, 1e-5
|
# Update scheduler (manual) at 0, 54, 61 epochs to 1e-3, 1e-4, 1e-5
|
||||||
if epoch > 50:
|
if epoch > 50:
|
||||||
lr = 1e-5
|
|
||||||
else:
|
|
||||||
lr = 1e-4
|
lr = 1e-4
|
||||||
|
else:
|
||||||
|
lr = 1e-3
|
||||||
for g in optimizer.param_groups:
|
for g in optimizer.param_groups:
|
||||||
g['lr'] = lr
|
g['lr'] = lr
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue