Update app.py
Browse files
app.py
CHANGED
|
@@ -1170,8 +1170,8 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
|
|
| 1170 |
|
| 1171 |
|
| 1172 |
# 1. Basierend auf der UI-Stärke (strength) berechnen
|
| 1173 |
-
adj_strength = 0.
|
| 1174 |
-
controlnet_strength = 0.
|
| 1175 |
pose_ratio = 0.85 - 0.4 * smoothstep(0.4, 0.8, ui_strength)
|
| 1176 |
canny_ratio = 1.0 - pose_ratio
|
| 1177 |
|
|
|
|
| 1170 |
|
| 1171 |
|
| 1172 |
# 1. Basierend auf der UI-Stärke (strength) berechnen
|
| 1173 |
+
adj_strength = 0.15 + 0.8 * (ui_strength**2.0)
|
| 1174 |
+
controlnet_strength = 0.9 * (1 - ui_strength**2.5)
|
| 1175 |
pose_ratio = 0.85 - 0.4 * smoothstep(0.4, 0.8, ui_strength)
|
| 1176 |
canny_ratio = 1.0 - pose_ratio
|
| 1177 |
|