Update app.py
Browse files
app.py
CHANGED
|
@@ -1481,16 +1481,16 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
|
|
| 1481 |
# Im Bereich >0.85 Identitätswechsel möglich!
|
| 1482 |
else:
|
| 1483 |
controlnet_strength = 0.30
|
| 1484 |
-
canny_ratio = 0.
|
| 1485 |
|
| 1486 |
depth_ratio = 1.0 - canny_ratio
|
| 1487 |
|
| 1488 |
|
| 1489 |
#Clipping:
|
| 1490 |
adj_strength = max(0.30, min(adj_strength, 0.95)) # 25-95%
|
| 1491 |
-
controlnet_strength = max(0.
|
| 1492 |
-
depth_ratio = max(0.
|
| 1493 |
-
canny_ratio = max(0.
|
| 1494 |
|
| 1495 |
print(f" 👤 LATE-START GESICHT:")
|
| 1496 |
print(f" UI={ui_strength:.2f}, t={t:.3f}")
|
|
|
|
| 1481 |
# Im Bereich >0.85 Identitätswechsel möglich!
|
| 1482 |
else:
|
| 1483 |
controlnet_strength = 0.30
|
| 1484 |
+
canny_ratio = 0.18
|
| 1485 |
|
| 1486 |
depth_ratio = 1.0 - canny_ratio
|
| 1487 |
|
| 1488 |
|
| 1489 |
#Clipping:
|
| 1490 |
adj_strength = max(0.30, min(adj_strength, 0.95)) # 25-95%
|
| 1491 |
+
controlnet_strength = max(0.28, min(controlnet_strength, 0.40)) # 15-85%
|
| 1492 |
+
depth_ratio = max(0.70, min(depth_ratio, 0.82)) # 50-95%
|
| 1493 |
+
canny_ratio = max(0.18, min(canny_ratio, 0.30)) # 5-40%
|
| 1494 |
|
| 1495 |
print(f" 👤 LATE-START GESICHT:")
|
| 1496 |
print(f" UI={ui_strength:.2f}, t={t:.3f}")
|