MCPcopy Create free account
hub / github.com/buaacxf/VIPTR / lr_warm

Function lr_warm

optimizer.py:219–220  ·  view source on GitHub ↗
(base_lr, epoch, warm_epoch)

Source from the content-addressed store, hash-verified

217 return Outparam
218
219def lr_warm(base_lr, epoch, warm_epoch):
220 return (base_lr/warm_epoch)*(epoch+1)
221
222def adjust_learning_rate_warm(opt, optimizer, epoch):
223 lr = lr_warm(opt.base_lr, epoch, 2) # lr_warm(config['optimizer']['base_lr'], epoch,config['train']['warmepochs'])

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected