samet-akcay / skip-ganomaly

Source code for Skip-GANomaly paper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get_scheduler function is work?

davids-zhou opened this issue · comments

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?