get_scheduler function is work?
davids-zhou opened this issue · 0 comments
davids-zhou commented
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?