Update app.py
Browse files
app.py
CHANGED
|
@@ -1474,11 +1474,11 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
|
|
| 1474 |
if ui_strength <= 0.75:
|
| 1475 |
controlnet_strength = 0.45
|
| 1476 |
elif ui_strength <= 0.85:
|
| 1477 |
-
controlnet_strength = 0.
|
| 1478 |
else:
|
| 1479 |
-
controlnet_strength = 0.
|
| 1480 |
|
| 1481 |
-
depth_ratio = 0.
|
| 1482 |
canny_ratio = 1.0 - depth_ratio
|
| 1483 |
|
| 1484 |
|
|
|
|
| 1474 |
if ui_strength <= 0.75:
|
| 1475 |
controlnet_strength = 0.45
|
| 1476 |
elif ui_strength <= 0.85:
|
| 1477 |
+
controlnet_strength = 0.37
|
| 1478 |
else:
|
| 1479 |
+
controlnet_strength = 0.32
|
| 1480 |
|
| 1481 |
+
depth_ratio = 0.85 - (ui_strength * 0.12)
|
| 1482 |
canny_ratio = 1.0 - depth_ratio
|
| 1483 |
|
| 1484 |
|