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 680fdcf293
commit 297570ded3

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,