Upload app.py
Browse files
app.py
CHANGED
@@ -113,9 +113,7 @@ def run_lora(prompt, cfg_scale, steps, selected_index, randomize_seed, seed, wid
|
|
113 |
image = generate_image(prompt, trigger_word, steps, seed, cfg_scale, width, height, lora_scale, progress)
|
114 |
pipe.to("cpu")
|
115 |
if selected_index is not None: pipe.unload_lora_weights()
|
116 |
-
if is_valid_lora(lora_json):
|
117 |
-
pipe.unfuse_lora()
|
118 |
-
pipe.unload_lora_weights()
|
119 |
clear_cache()
|
120 |
return image, seed
|
121 |
|
|
|
113 |
image = generate_image(prompt, trigger_word, steps, seed, cfg_scale, width, height, lora_scale, progress)
|
114 |
pipe.to("cpu")
|
115 |
if selected_index is not None: pipe.unload_lora_weights()
|
116 |
+
if is_valid_lora(lora_json): pipe.unfuse_lora()
|
|
|
|
|
117 |
clear_cache()
|
118 |
return image, seed
|
119 |
|