Update app.py
Browse files
app.py
CHANGED
|
@@ -135,7 +135,7 @@ pipe = load_pipeline()
|
|
| 135 |
# ---------------------------
|
| 136 |
|
| 137 |
@spaces.GPU
|
| 138 |
-
def generate(face_image, prompt, negative_prompt="", steps=
|
| 139 |
"""
|
| 140 |
face_image : image contenant le visage de référence
|
| 141 |
prompt : description du corps, tenue, décor, style
|
|
@@ -167,7 +167,7 @@ def generate(face_image, prompt, negative_prompt="", steps=30, guidance_scale=5.
|
|
| 167 |
image_embeds=face_emb_batch,
|
| 168 |
num_inference_steps=int(steps),
|
| 169 |
guidance_scale=float(guidance_scale),
|
| 170 |
-
controlnet_conditioning_scale=0.
|
| 171 |
height=int(height),
|
| 172 |
width=int(width),
|
| 173 |
)
|
|
|
|
| 135 |
# ---------------------------
|
| 136 |
|
| 137 |
@spaces.GPU
|
| 138 |
+
def generate(face_image, prompt, negative_prompt="", steps=40, guidance_scale=3.5, height=1024, width=768):
|
| 139 |
"""
|
| 140 |
face_image : image contenant le visage de référence
|
| 141 |
prompt : description du corps, tenue, décor, style
|
|
|
|
| 167 |
image_embeds=face_emb_batch,
|
| 168 |
num_inference_steps=int(steps),
|
| 169 |
guidance_scale=float(guidance_scale),
|
| 170 |
+
controlnet_conditioning_scale=0.4,
|
| 171 |
height=int(height),
|
| 172 |
width=int(width),
|
| 173 |
)
|