Skip to content

Commit 8dde211

Browse files
committed
add constant with rules in TYPE_TO_SCHEDULER_FUNCTION
1 parent 4184eb1 commit 8dde211

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diffusers/optimization.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ def lr_lambda(current_step: int):
276276
SchedulerType.POLYNOMIAL: get_polynomial_decay_schedule_with_warmup,
277277
SchedulerType.CONSTANT: get_constant_schedule,
278278
SchedulerType.CONSTANT_WITH_WARMUP: get_constant_schedule_with_warmup,
279+
SchedulerType.CONSTANT_WITH_RULES: get_constant_schedule_with_rules,
279280
}
280281

281282

0 commit comments

Comments
 (0)