Update app.py
Browse files
app.py
CHANGED
|
@@ -1055,14 +1055,14 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
|
|
| 1055 |
|
| 1056 |
# Anpassung für Humanoid → Humanoid
|
| 1057 |
if any(keyword in prompt_lower for keyword in humanoid_keywords):
|
| 1058 |
-
pose_ratio = 0.
|
| 1059 |
-
canny_ratio = 0.
|
| 1060 |
print("👤 Humanoid → Humanoid → Ratio 85:15 (Pose:Canny)")
|
| 1061 |
|
| 1062 |
# Anpassung für Gegenstand → Gegenstand
|
| 1063 |
elif any(keyword in prompt_lower for keyword in object_keywords):
|
| 1064 |
-
pose_ratio = 0.
|
| 1065 |
-
canny_ratio = 0.
|
| 1066 |
adj_strength = min(0.7, strength * 1.15) # Stärkere Transformation
|
| 1067 |
print("📦 Gegenstand → Gegenstand → Ratio 25:75 (Pose:Canny)")
|
| 1068 |
|
|
|
|
| 1055 |
|
| 1056 |
# Anpassung für Humanoid → Humanoid
|
| 1057 |
if any(keyword in prompt_lower for keyword in humanoid_keywords):
|
| 1058 |
+
pose_ratio = 0.95 # 85% Pose
|
| 1059 |
+
canny_ratio = 0.05. # 15% Canny
|
| 1060 |
print("👤 Humanoid → Humanoid → Ratio 85:15 (Pose:Canny)")
|
| 1061 |
|
| 1062 |
# Anpassung für Gegenstand → Gegenstand
|
| 1063 |
elif any(keyword in prompt_lower for keyword in object_keywords):
|
| 1064 |
+
pose_ratio = 0.10 # 25% Pose
|
| 1065 |
+
canny_ratio = 0.90. # 75% Canny
|
| 1066 |
adj_strength = min(0.7, strength * 1.15) # Stärkere Transformation
|
| 1067 |
print("📦 Gegenstand → Gegenstand → Ratio 25:75 (Pose:Canny)")
|
| 1068 |
|