Update app.py
Browse files
app.py
CHANGED
|
@@ -1541,14 +1541,12 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
|
|
| 1541 |
|
| 1542 |
else: #Standard-Modus für alle Köpfe!
|
| 1543 |
print(" Standard-Modus für alle Köpfe")
|
| 1544 |
-
|
| 1545 |
-
|
| 1546 |
-
|
| 1547 |
-
|
| 1548 |
-
|
| 1549 |
-
|
| 1550 |
-
depth_ratio = max(0.1, min(depth_ratio, 0.9))
|
| 1551 |
-
canny_ratio = max(0.1, min(canny_ratio, 0.9))
|
| 1552 |
|
| 1553 |
#======Conditioning Scale für alle Fälle=======
|
| 1554 |
conditioning_scale = [
|
|
|
|
| 1541 |
|
| 1542 |
else: #Standard-Modus für alle Köpfe!
|
| 1543 |
print(" Standard-Modus für alle Köpfe")
|
| 1544 |
+
|
| 1545 |
+
#======Clipping für alle Köpfe=========
|
| 1546 |
+
adj_strength = max(0.15, min(adj_strength, 0.95))
|
| 1547 |
+
controlnet_strength = max(0.1, min(controlnet_strength, 0.9))
|
| 1548 |
+
depth_ratio = max(0.1, min(depth_ratio, 0.9))
|
| 1549 |
+
canny_ratio = max(0.1, min(canny_ratio, 0.9))
|
|
|
|
|
|
|
| 1550 |
|
| 1551 |
#======Conditioning Scale für alle Fälle=======
|
| 1552 |
conditioning_scale = [
|