Astridkraft commited on
Commit
f64238b
·
verified ·
1 Parent(s): e484420

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -1168,15 +1168,12 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1168
  controlnet_strength = max(0.4, min(controlnet_strength, 0.95))
1169
  pose_ratio = max(0.5, min(pose_ratio, 0.9))
1170
  canny_ratio = max(0.1, min(canny_ratio, 0.5))
1171
-
1172
- # 3. Finale ControlNet-Stärken berechnen
1173
- pose_control = controlnet_strength * pose_ratio
1174
- canny_control = controlnet_strength * canny_ratio
1175
 
1176
  print(f"👤 Humanoid → Humanoid (UI-Stärke: {ui_strength})")
1177
  print(f" adj_strength: {adj_strength:.2f}, controlnet: {controlnet_strength:.2f}")
1178
  print(f" Verhältnis: Pose {pose_ratio*100:.0f}% : Canny {canny_ratio*100:.0f}%")
1179
- print(f" Finale Scales: Pose {pose_control:.3f}, Canny {canny_control:.3f}")
1180
 
1181
 
1182
  # Anpassung für Gegenstand → Gegenstand
 
1168
  controlnet_strength = max(0.4, min(controlnet_strength, 0.95))
1169
  pose_ratio = max(0.5, min(pose_ratio, 0.9))
1170
  canny_ratio = max(0.1, min(canny_ratio, 0.5))
1171
+
 
 
 
1172
 
1173
  print(f"👤 Humanoid → Humanoid (UI-Stärke: {ui_strength})")
1174
  print(f" adj_strength: {adj_strength:.2f}, controlnet: {controlnet_strength:.2f}")
1175
  print(f" Verhältnis: Pose {pose_ratio*100:.0f}% : Canny {canny_ratio*100:.0f}%")
1176
+
1177
 
1178
 
1179
  # Anpassung für Gegenstand → Gegenstand