Update app.py
Browse files
app.py
CHANGED
|
@@ -1191,7 +1191,10 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
|
|
| 1191 |
print(f" adj_strength: {adj_strength:.2f}, controlnet: {controlnet_strength:.2f}")
|
| 1192 |
print(f" Verhältnis: Pose {pose_ratio*100:.0f}% : Canny {canny_ratio*100:.0f}%")
|
| 1193 |
print(f" Scale: [{conditioning_scale[0]:.3f}, {conditioning_scale[1]:.3f}]")
|
| 1194 |
-
|
|
|
|
|
|
|
|
|
|
| 1195 |
|
| 1196 |
|
| 1197 |
# Anpassung für Gegenstand → Gegenstand
|
|
|
|
| 1191 |
print(f" adj_strength: {adj_strength:.2f}, controlnet: {controlnet_strength:.2f}")
|
| 1192 |
print(f" Verhältnis: Pose {pose_ratio*100:.0f}% : Canny {canny_ratio*100:.0f}%")
|
| 1193 |
print(f" Scale: [{conditioning_scale[0]:.3f}, {conditioning_scale[1]:.3f}]")
|
| 1194 |
+
# Debug:
|
| 1195 |
+
print(f"DEBUG UI={ui_strength}: smoothstep={smoothstep(0.4, 0.8, ui_strength):.3f}")
|
| 1196 |
+
print(f"DEBUG Pose vor Clipping: {0.85 - 0.4 * smoothstep(0.4, 0.8, ui_strength):.3f}")
|
| 1197 |
+
print(f"DEBUG Pose nach Clipping: {pose_ratio:.3f}")
|
| 1198 |
|
| 1199 |
|
| 1200 |
# Anpassung für Gegenstand → Gegenstand
|