(minor) Add a TODO note to get_scheduler(...).

This commit is contained in:
Ryan Dick 2024-06-06 15:04:31 -04:00 committed by Kent Keirsey
parent b03073d888
commit 43108eec13

View File

@ -65,6 +65,9 @@ def get_scheduler(
scheduler_name: str,
seed: int,
) -> Scheduler:
"""Load a scheduler and apply some scheduler-specific overrides."""
# TODO(ryand): Silently falling back to ddim seems like a bad idea. Look into why this was added and remove if
# possible.
scheduler_class, scheduler_extra_config = SCHEDULER_MAP.get(scheduler_name, SCHEDULER_MAP["ddim"])
orig_scheduler_info = context.models.load(scheduler_info)
with orig_scheduler_info as orig_scheduler: