Astridkraft commited on
Commit
cd7e634
·
verified ·
1 Parent(s): 5b6e537

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1191,7 +1191,7 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1191
  if ui_strength > 0.6:
1192
  # Je höher die Stärke, desto weniger Canny (für Farbänderungen)
1193
  canny_reduction = smoothstep(0.6, 0.9, ui_strength) * 0.3
1194
- pose_ratio = min(0.75, base_pose + canny_reduction) # Pose erhöhen = Canny reduzieren
1195
  else:
1196
  pose_ratio = base_pose
1197
 
@@ -1210,8 +1210,8 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1210
  # 2. Werte auf sinnvolle Bereiche begrenzen (Clipping)
1211
  adj_strength = max(0.15, min(adj_strength, 0.95))
1212
  controlnet_strength = max(0.12, min(controlnet_strength, 0.85))
1213
- pose_ratio = max(0.45, min(pose_ratio, 0.80))
1214
- canny_ratio = max(0.20, min(canny_ratio, 0.55))
1215
 
1216
  conditioning_scale = [
1217
  controlnet_strength * pose_ratio, # Depth-Gewichtung
 
1191
  if ui_strength > 0.6:
1192
  # Je höher die Stärke, desto weniger Canny (für Farbänderungen)
1193
  canny_reduction = smoothstep(0.6, 0.9, ui_strength) * 0.3
1194
+ pose_ratio = min(0.65, base_pose + canny_reduction) # Pose erhöhen = Canny reduzieren
1195
  else:
1196
  pose_ratio = base_pose
1197
 
 
1210
  # 2. Werte auf sinnvolle Bereiche begrenzen (Clipping)
1211
  adj_strength = max(0.15, min(adj_strength, 0.95))
1212
  controlnet_strength = max(0.12, min(controlnet_strength, 0.85))
1213
+ pose_ratio = max(0.45, min(pose_ratio, 0.65))
1214
+ canny_ratio = max(0.35, min(canny_ratio, 0.55))
1215
 
1216
  conditioning_scale = [
1217
  controlnet_strength * pose_ratio, # Depth-Gewichtung