MomentumAnnealingEMA — mmengine 0.10.7 documentation (original) (raw)

class mmengine.model.MomentumAnnealingEMA(model, momentum=0.0002, gamma=100, interval=1, device=None, update_buffers=False)[source]

Exponential moving average (EMA) with momentum annealing strategy.

Parameters:

avg_func(averaged_param, source_param, steps)[source]

Compute the moving average of the parameters using the linear momentum strategy.

Parameters:

Return type:

None