Astridkraft commited on
Commit
0bb8557
·
verified ·
1 Parent(s): 086e54f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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.90 # 85% Pose
1059
- canny_ratio = 0.10 # 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.20 # 25% Pose
1065
- canny_ratio = 0.80 # 75% Canny
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