Spaces:
Paused
Paused
Commit
•
93ef6a5
1
Parent(s):
fb471fe
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ from pipeline_stable_diffusion_xl_instantid_img2img import StableDiffusionXLInst
|
|
30 |
from controlnet_aux import ZoeDetector
|
31 |
|
32 |
from compel import Compel, ReturnedEmbeddingsType
|
33 |
-
import spaces
|
34 |
|
35 |
#from gradio_imageslider import ImageSlider
|
36 |
|
@@ -204,7 +204,7 @@ def merge_incompatible_lora(full_path_lora, lora_scale):
|
|
204 |
)
|
205 |
del weights_sd
|
206 |
del lora_model
|
207 |
-
|
208 |
def generate_image(prompt, negative, face_emb, face_image, image_strength, images, guidance_scale, face_strength, depth_control_scale):
|
209 |
print("Processing prompt...")
|
210 |
conditioning, pooled = compel(prompt)
|
|
|
30 |
from controlnet_aux import ZoeDetector
|
31 |
|
32 |
from compel import Compel, ReturnedEmbeddingsType
|
33 |
+
#import spaces
|
34 |
|
35 |
#from gradio_imageslider import ImageSlider
|
36 |
|
|
|
204 |
)
|
205 |
del weights_sd
|
206 |
del lora_model
|
207 |
+
#@spaces.GPU
|
208 |
def generate_image(prompt, negative, face_emb, face_image, image_strength, images, guidance_scale, face_strength, depth_control_scale):
|
209 |
print("Processing prompt...")
|
210 |
conditioning, pooled = compel(prompt)
|