MCPcopy Create free account
hub / github.com/DragonisCV/RAM / _set_lr

Method _set_lr

ram/models/base_model.py:167–175  ·  view source on GitHub ↗

Set learning rate for warm-up. Args: lr_groups_l (list): List for lr_groups, each for an optimizer.

(self, lr_groups_l)

Source from the content-addressed store, hash-verified

165 # logger.info(net_str)
166
167 def _set_lr(self, lr_groups_l):
168 """Set learning rate for warm-up.
169
170 Args:
171 lr_groups_l (list): List for lr_groups, each for an optimizer.
172 """
173 for optimizer, lr_groups in zip(self.optimizers, lr_groups_l):
174 for param_group, lr in zip(optimizer.param_groups, lr_groups):
175 param_group['lr'] = lr
176
177 def _get_init_lr(self):
178 """Get the initial lr, which is set by the scheduler.

Callers 1

update_learning_rateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected