def METHOD_NAME(step):
    if step < self.config.curvature_loss_warmup_steps:
        factor = step / self.config.curvature_loss_warmup_steps
    else:
        delta = 1. / (base_res * growth_factor ** ( (step - self.config.curvature_loss_warmup_steps) / steps_per_level))
        delta = max(1. / max_res, delta)
        factor = delta / init_delta
    self.curvature_loss_multi_factor = factor