fix: turbo scheduler loading issue (#3065)

* fix: correctly load ModelPatcher

* feat: do not load model at all, not needed
This commit is contained in:
Manuel Schmid
2024-05-31 22:24:19 +02:00
committed by GitHub
parent 3ef663c5b7
commit 7899261755
2 changed files with 2 additions and 3 deletions
@@ -107,8 +107,7 @@ class SDTurboScheduler:
def get_sigmas(self, model, steps, denoise):
start_step = 10 - int(10 * denoise)
timesteps = torch.flip(torch.arange(1, 11) * 100 - 1, (0,))[start_step:start_step + steps]
ldm_patched.modules.model_management.load_models_gpu([model])
sigmas = model.model.model_sampling.sigma(timesteps)
sigmas = model.model_sampling.sigma(timesteps)
sigmas = torch.cat([sigmas, sigmas.new_zeros([1])])
return (sigmas, )