multimodalart HF staff commited on
Commit
1ac5fb2
1 Parent(s): f0ceffc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -289,7 +289,6 @@ def generate_image(prompt_mash, steps, seed, cfg_scale, width, height, progress)
289
  good_vae=good_vae,
290
  ):
291
  yield img
292
- pipe.to("cpu")
293
 
294
  @spaces.GPU(duration=90)
295
  def generate_image_to_image(prompt_mash, image_input_path, image_strength, steps, cfg_scale, width, height, seed):
@@ -308,7 +307,6 @@ def generate_image_to_image(prompt_mash, image_input_path, image_strength, steps
308
  joint_attention_kwargs={"scale": 1.0},
309
  output_type="pil",
310
  ).images[0]
311
- pipe_i2i.to("cpu")
312
  return final_image
313
 
314
  @spaces.GPU(duration=90)
 
289
  good_vae=good_vae,
290
  ):
291
  yield img
 
292
 
293
  @spaces.GPU(duration=90)
294
  def generate_image_to_image(prompt_mash, image_input_path, image_strength, steps, cfg_scale, width, height, seed):
 
307
  joint_attention_kwargs={"scale": 1.0},
308
  output_type="pil",
309
  ).images[0]
 
310
  return final_image
311
 
312
  @spaces.GPU(duration=90)