Astridkraft commited on
Commit
ecbdc28
·
verified ·
1 Parent(s): 6ef28c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1210,7 +1210,8 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1210
  ui_strength = strength
1211
 
1212
 
1213
- # Smoothstep-Hilfsfunktion sorgt für weiche Übergänge zwischen den Posen
 
1214
  def smoothstep(min_val, max_val, x):
1215
  x = max(0, min(1, (x - min_val) / (max_val - min_val)))
1216
  return x * x * (3 - 2 * x)
 
1210
  ui_strength = strength
1211
 
1212
 
1213
+ # Smoothstep-Hilfsfunktion sorgt für weiche Übergänge zwischen den Posen. Die Smoothstep-Funktion sorgt dafür
1214
+ # dass am Anfang und Ende des UI-Strength-Wertes nicht viel passiert hauptsächlich in der Mitte
1215
  def smoothstep(min_val, max_val, x):
1216
  x = max(0, min(1, (x - min_val) / (max_val - min_val)))
1217
  return x * x * (3 - 2 * x)