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
parent a406fb725a
commit ea9fc99ce7

View File

@ -589,8 +589,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,