Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -219,7 +219,8 @@ def generate(
|
|
219 |
noise_pred_uncond, noise_pred_text = noise_pred.chunk(2)
|
220 |
noise_pred = noise_pred_uncond + guidance_scale * (noise_pred_text - noise_pred_uncond)
|
221 |
current_latents = pipe.scheduler.step(noise_pred, t, current_latents, return_dict=False)[0]
|
222 |
-
|
|
|
223 |
intermediate_latents_cpu = current_latents.detach().cpu()
|
224 |
|
225 |
if segment==8:
|
|
|
219 |
noise_pred_uncond, noise_pred_text = noise_pred.chunk(2)
|
220 |
noise_pred = noise_pred_uncond + guidance_scale * (noise_pred_text - noise_pred_uncond)
|
221 |
current_latents = pipe.scheduler.step(noise_pred, t, current_latents, return_dict=False)[0]
|
222 |
+
|
223 |
+
generator_state = generator.get_state()
|
224 |
intermediate_latents_cpu = current_latents.detach().cpu()
|
225 |
|
226 |
if segment==8:
|