Astridkraft commited on
Commit
e260ed2
·
verified ·
1 Parent(s): 5847438

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1170,8 +1170,8 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1170
 
1171
 
1172
  # 1. Basierend auf der UI-Stärke (strength) berechnen
1173
- adj_strength = 0.2 + 0.7 * (ui_strength**1.5)
1174
- controlnet_strength = 0.8 * (1 - ui_strength**1.8)
1175
  pose_ratio = 0.85 - 0.4 * smoothstep(0.4, 0.8, ui_strength)
1176
  canny_ratio = 1.0 - pose_ratio
1177
 
 
1170
 
1171
 
1172
  # 1. Basierend auf der UI-Stärke (strength) berechnen
1173
+ adj_strength = 0.15 + 0.8 * (ui_strength**2.0)
1174
+ controlnet_strength = 0.9 * (1 - ui_strength**2.5)
1175
  pose_ratio = 0.85 - 0.4 * smoothstep(0.4, 0.8, ui_strength)
1176
  canny_ratio = 1.0 - pose_ratio
1177