Make init_scheduler() a staticmethod on DenoiseLatentsInvocation so that it can be called externally.

This commit is contained in:
Ryan Dick 2024-06-07 11:00:37 -04:00 committed by Kent Keirsey
parent 1ef266845a
commit 3d49541c09

View File

@ -592,8 +592,8 @@ class DenoiseLatentsInvocation(BaseInvocation):
# original idea by https://github.com/AmericanPresidentJimmyCarter
# TODO: research more for second order schedulers timesteps
@staticmethod
def init_scheduler(
self,
scheduler: Union[Scheduler, ConfigMixin],
device: torch.device,
steps: int,