Update app.py
Browse files
app.py
CHANGED
|
@@ -1101,9 +1101,9 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
|
|
| 1101 |
|
| 1102 |
elif mode == "environment_change":
|
| 1103 |
# optimale UI-Werte:
|
| 1104 |
-
|
| 1105 |
-
|
| 1106 |
-
|
| 1107 |
keep_environment = True
|
| 1108 |
|
| 1109 |
# 1. Denoising: starke Neugenerierung
|
|
@@ -1153,7 +1153,11 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
|
|
| 1153 |
print(f" Conditioning Scale: [{conditioning_scale[0]:.3f}, {conditioning_scale[1]:.3f}]")
|
| 1154 |
|
| 1155 |
|
| 1156 |
-
else: # face_only_change
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1157 |
keep_environment = True
|
| 1158 |
adj_strength = min(0.65, strength * 1.05)
|
| 1159 |
|
|
|
|
| 1101 |
|
| 1102 |
elif mode == "environment_change":
|
| 1103 |
# optimale UI-Werte:
|
| 1104 |
+
# Strength: 0.72 β 0.78 β ideal: 0.75
|
| 1105 |
+
# guidance (CFG): 8.5 β 9.5 β ideal: 9
|
| 1106 |
+
# Steps: 34 β 38 β ideal: 35
|
| 1107 |
keep_environment = True
|
| 1108 |
|
| 1109 |
# 1. Denoising: starke Neugenerierung
|
|
|
|
| 1153 |
print(f" Conditioning Scale: [{conditioning_scale[0]:.3f}, {conditioning_scale[1]:.3f}]")
|
| 1154 |
|
| 1155 |
|
| 1156 |
+
else: # face_only_change
|
| 1157 |
+
# Optimale UI-Werte (entscheidend)
|
| 1158 |
+
# Strength: 0.60 β 0.65 β ideal: 0.62
|
| 1159 |
+
# Guidance (CFG): 7.0 β 8.0 β ideal: 7.5
|
| 1160 |
+
# Steps: 30 β 34 β ideal: 32
|
| 1161 |
keep_environment = True
|
| 1162 |
adj_strength = min(0.65, strength * 1.05)
|
| 1163 |
|