Added timestep modifications to lcm scheduler for more evenly spaced timesteps

This commit is contained in:
Jaret Burkett
2023-11-17 23:26:52 -07:00
parent 6280284d8b
commit fbec68681d
4 changed files with 277 additions and 175 deletions

View File

@@ -836,8 +836,9 @@ class StableDiffusion:
bleed_latents: torch.FloatTensor = None,
**kwargs,
):
timesteps_to_run = self.noise_scheduler.timesteps[start_timesteps:total_timesteps]
for timestep in tqdm(self.noise_scheduler.timesteps[start_timesteps:total_timesteps], leave=False):
for timestep in tqdm(timesteps_to_run, leave=False):
noise_pred = self.predict_noise(
latents,
text_embeddings,