Spaces:
Running
on
Zero
Running
on
Zero
Update pico_model.py
Browse files- pico_model.py +2 -1
pico_model.py
CHANGED
@@ -179,7 +179,8 @@ class ClapText_Onset_2_Audio_Diffusion(nn.Module):
|
|
179 |
num_warmup_steps = len(timesteps) - num_steps * inference_scheduler.order
|
180 |
progress_bar = tqdm(range(num_steps), disable=disable_progress)
|
181 |
|
182 |
-
for i, t in
|
|
|
183 |
# expand the latents if we are doing classifier free guidance
|
184 |
latent_model_input = torch.cat([onset_latents] * 2) if classifier_free_guidance else onset_latents
|
185 |
latent_model_input = inference_scheduler.scale_model_input(latent_model_input, t)
|
|
|
179 |
num_warmup_steps = len(timesteps) - num_steps * inference_scheduler.order
|
180 |
progress_bar = tqdm(range(num_steps), disable=disable_progress)
|
181 |
|
182 |
+
for i, t in enumerate(timesteps):
|
183 |
+
print(i)
|
184 |
# expand the latents if we are doing classifier free guidance
|
185 |
latent_model_input = torch.cat([onset_latents] * 2) if classifier_free_guidance else onset_latents
|
186 |
latent_model_input = inference_scheduler.scale_model_input(latent_model_input, t)
|