John6666 commited on
Commit
4b234e2
1 Parent(s): f2884b5

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -114,8 +114,8 @@ def update_selection(evt: gr.SelectData, width, height):
114
  @spaces.GPU(duration=70)
115
  def generate_image(prompt_mash, steps, seed, cfg_scale, width, height, lora_scale, cn_on, progress=gr.Progress(track_tqdm=True)):
116
  pipe.to("cuda")
117
- controlnet.to("cuda")
118
- controlnet_union.to("cuda")
119
  generator = torch.Generator(device="cuda").manual_seed(seed)
120
 
121
  with calculateDuration("Generating image"):
 
114
  @spaces.GPU(duration=70)
115
  def generate_image(prompt_mash, steps, seed, cfg_scale, width, height, lora_scale, cn_on, progress=gr.Progress(track_tqdm=True)):
116
  pipe.to("cuda")
117
+ #controlnet.to("cuda")
118
+ #controlnet_union.to("cuda")
119
  generator = torch.Generator(device="cuda").manual_seed(seed)
120
 
121
  with calculateDuration("Generating image"):