You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def exp_lr_scheduler(optimizer, decay_ratio):
"""Decay learning rate by a factor of lr_decay every lr_decay_epoch epochs"""
for param_group in optimizer.param_groups:
param_group['lr'] *= decay_ratio
return optimizer
The text was updated successfully, but these errors were encountered:
Seems that you need this to utils.py:
def exp_lr_scheduler(optimizer, decay_ratio):
"""Decay learning rate by a factor of lr_decay every lr_decay_epoch epochs"""
for param_group in optimizer.param_groups:
param_group['lr'] *= decay_ratio
return optimizer
The text was updated successfully, but these errors were encountered: