Update app.py
Browse files
app.py
CHANGED
|
@@ -1470,15 +1470,15 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
|
|
| 1470 |
|
| 1471 |
adj_strength = 0.30 + 0.60 * t
|
| 1472 |
|
| 1473 |
-
#
|
| 1474 |
if ui_strength <= 0.65:
|
| 1475 |
controlnet_strength = 0.45
|
| 1476 |
canny_ratio = 0.35
|
| 1477 |
-
|
| 1478 |
elif ui_strength <= 0.85:
|
| 1479 |
controlnet_strength = 0.37
|
| 1480 |
canny_ratio = 0.20
|
| 1481 |
-
|
| 1482 |
else:
|
| 1483 |
controlnet_strength = 0.30
|
| 1484 |
canny_ratio = 0.10
|
|
|
|
| 1470 |
|
| 1471 |
adj_strength = 0.30 + 0.60 * t
|
| 1472 |
|
| 1473 |
+
# Im Bereich 0.1-0.65 wird die Transformation stabil gehalten
|
| 1474 |
if ui_strength <= 0.65:
|
| 1475 |
controlnet_strength = 0.45
|
| 1476 |
canny_ratio = 0.35
|
| 1477 |
+
# Im Bereich 0.66 bis 0.85 erfolgt ein Stilwechsel
|
| 1478 |
elif ui_strength <= 0.85:
|
| 1479 |
controlnet_strength = 0.37
|
| 1480 |
canny_ratio = 0.20
|
| 1481 |
+
# Im Bereich >0.85 Identitätswechsel möglich!
|
| 1482 |
else:
|
| 1483 |
controlnet_strength = 0.30
|
| 1484 |
canny_ratio = 0.10
|