Astridkraft commited on
Commit
959672d
·
verified ·
1 Parent(s): 6ddd832

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -1504,7 +1504,7 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1504
  print(" ⚡ BOOST: ControlNet erhöht für Strukturerhaltung")
1505
 
1506
  else:
1507
- # ===== STANDARD-ANIME (BALANCIERT) - HIER WAR controlnet_strength UNDEFINIERT! =====
1508
  t = smoothstep_normal(0.4, 0.9, ui_strength)
1509
 
1510
  # DEPTH/CANNY: Mittlere Einstellung
@@ -1545,16 +1545,18 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1545
  print(f" Depth: {depth_ratio*100}%, Canny: {canny_ratio*100}%")
1546
 
1547
 
1548
- else: #Standard
1549
- print(" Standard-Modus")
 
 
1550
 
1551
- #Clipping für alle Fälle
1552
  adj_strength = max(0.15, min(adj_strength, 0.95))
1553
  controlnet_strength = max(0.1, min(controlnet_strength, 0.9))
1554
  depth_ratio = max(0.1, min(depth_ratio, 0.9))
1555
  canny_ratio = max(0.1, min(canny_ratio, 0.9))
1556
 
1557
- #Conditioning Scale für alle Fälle
1558
  conditioning_scale = [
1559
  controlnet_strength * depth_ratio,
1560
  controlnet_strength * canny_ratio
 
1504
  print(" ⚡ BOOST: ControlNet erhöht für Strukturerhaltung")
1505
 
1506
  else:
1507
+ # Wenn is_front_face und is_back_head = False:
1508
  t = smoothstep_normal(0.4, 0.9, ui_strength)
1509
 
1510
  # DEPTH/CANNY: Mittlere Einstellung
 
1545
  print(f" Depth: {depth_ratio*100}%, Canny: {canny_ratio*100}%")
1546
 
1547
 
1548
+ else: #Standard-Modus für alle Köpfe!
1549
+ print(" Standard-Modus für alle Köpfe")
1550
+
1551
+
1552
 
1553
+ #======Clipping für alle Fälle=========
1554
  adj_strength = max(0.15, min(adj_strength, 0.95))
1555
  controlnet_strength = max(0.1, min(controlnet_strength, 0.9))
1556
  depth_ratio = max(0.1, min(depth_ratio, 0.9))
1557
  canny_ratio = max(0.1, min(canny_ratio, 0.9))
1558
 
1559
+ #======Conditioning Scale für alle Fälle=======
1560
  conditioning_scale = [
1561
  controlnet_strength * depth_ratio,
1562
  controlnet_strength * canny_ratio