Upload app.py
Browse files
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"):
|