ford442 commited on
Commit
c241523
·
verified ·
1 Parent(s): 0278aad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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: