Astridkraft commited on
Commit
abfc302
·
verified ·
1 Parent(s): 9840163

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1069,9 +1069,9 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1069
  # Anpassung für Humanoid → Humanoid
1070
  if any(keyword in prompt_lower for keyword in humanoid_keywords):
1071
  adj_strength = min(0.6, strength)
1072
- controlnet_strength = 0.4
1073
- pose_ratio = 0.95 # 95%Pose, 5%Canny - wenn Pose gehalten und kaum Detailveränderung-
1074
- canny_ratio = 0.05 # 80%Pose, 20 Canny - wenn Pose gehalten und mehr Detailveränderung -empfohlen 0.85/0.15
1075
  print("👤 Humanoid → Humanoid → Ratio 85:15 (Pose:Canny)")
1076
 
1077
  # Anpassung für Gegenstand → Gegenstand
 
1069
  # Anpassung für Humanoid → Humanoid
1070
  if any(keyword in prompt_lower for keyword in humanoid_keywords):
1071
  adj_strength = min(0.6, strength)
1072
+ controlnet_strength = 0.5
1073
+ pose_ratio = 0.85 # 95%Pose, 5%Canny - wenn Pose gehalten und kaum Detailveränderung-
1074
+ canny_ratio = 0.15 # 80%Pose, 20 Canny - wenn Pose gehalten und mehr Detailveränderung -empfohlen 0.85/0.15
1075
  print("👤 Humanoid → Humanoid → Ratio 85:15 (Pose:Canny)")
1076
 
1077
  # Anpassung für Gegenstand → Gegenstand