Astridkraft commited on
Commit
abea6fa
·
verified ·
1 Parent(s): e94b4ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1067,10 +1067,10 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1067
 
1068
  # Anpassung für Humanoid → Humanoid
1069
  if any(keyword in prompt_lower for keyword in humanoid_keywords):
1070
- adj_strength = min(0.6, strength)
1071
- controlnet_strength = 0.5
1072
- pose_ratio = 0.60 # 85/15 95%Pose, 5%Canny - wenn Pose gehalten und kaum Detailveränderung-
1073
- canny_ratio = 0.01 # 80%Pose, 20 Canny - wenn Pose gehalten und mehr Detailveränderung -empfohlen 0.85/0.15
1074
  print("👤 Humanoid → Humanoid → Ratio 85:15 (Pose:Canny)")
1075
 
1076
  # Anpassung für Gegenstand → Gegenstand
 
1067
 
1068
  # Anpassung für Humanoid → Humanoid
1069
  if any(keyword in prompt_lower for keyword in humanoid_keywords):
1070
+ adj_strength = min(0.65, strength) # wie stark entrauscht wird. Wenn Bereiche transparent oft nicht genug entrauscht.
1071
+ controlnet_strength = 0.5 # controlnet_strength runter: Reduziert global und gleichmäßig den Einfluss beider Maps. Man kann auch beide Maps einzeln heruntersetzen. Ist das Gleiche!
1072
+ pose_ratio = 0.65 # 95%Pose, 5%Canny - wenn Pose gehalten und kaum Detailveränderung-
1073
+ canny_ratio = 0.05 # wenn Pose gehalten und mehr Detailveränderung -empfohlen 0.85/0.15
1074
  print("👤 Humanoid → Humanoid → Ratio 85:15 (Pose:Canny)")
1075
 
1076
  # Anpassung für Gegenstand → Gegenstand