Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

get_scheduler function is work? #4

Open
davids-zhou opened this issue Sep 25, 2019 · 0 comments
Open

get_scheduler function is work? #4

davids-zhou opened this issue Sep 25, 2019 · 0 comments

Comments

@davids-zhou
Copy link

def get_scheduler(optimizer, opt):
if opt.lr_policy == 'lambda':
def lambda_rule(epoch):
#pdb.set_trace()
lr_l = 1.0 - max(0, epoch + 1 + opt.iter - opt.niter) / float(opt.niter_decay + 1)
return lr_l

i notice that epoch is always zero. so lr_l is always 1. lr_l should be decreased, is right?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant