Astridkraft commited on
Commit
a35e9d0
·
verified ·
1 Parent(s): 597a8c2

Update controlnet_module.py

Browse files
Files changed (1) hide show
  1. controlnet_module.py +3 -2
controlnet_module.py CHANGED
@@ -1191,11 +1191,12 @@ class ControlNetProcessor:
1191
 
1192
 
1193
  # GAUSSIAN BLUR macht aus der Binärmaske (0,1) eine Gaustufenmaske 3x3 weniger extreme Gaustufen, 15x15 weichere Graustufen->transparente Maske
1194
- # Blur macht neue Gaustufen!
1195
  print(" 🔷 Gaussian Blur für weiche Hautübergänge (3x3, sigma=0.5)")
1196
  mask_array = cv2.GaussianBlur(mask_array, (3, 3), 0.5)
1197
 
1198
- mask_array = np.where(mask_array > 128, 255, 0).astype(np.uint8)
 
1199
 
1200
  # GAMMA-KORREKTUR - verändert bestehende Gaustufen
1201
  #print(" 🎨 Gamma-Korrektur (0.7) für glatte Übergänge")
 
1191
 
1192
 
1193
  # GAUSSIAN BLUR macht aus der Binärmaske (0,1) eine Gaustufenmaske 3x3 weniger extreme Gaustufen, 15x15 weichere Graustufen->transparente Maske
1194
+ # Blur macht neue Gaustufen! Das wird die Maske für Composition!
1195
  print(" 🔷 Gaussian Blur für weiche Hautübergänge (3x3, sigma=0.5)")
1196
  mask_array = cv2.GaussianBlur(mask_array, (3, 3), 0.5)
1197
 
1198
+ # Macht wieder eine binäre Maske daraus! GPT meint Composition mit Blur-Maske!
1199
+ #mask_array = np.where(mask_array > 128, 255, 0).astype(np.uint8)
1200
 
1201
  # GAMMA-KORREKTUR - verändert bestehende Gaustufen
1202
  #print(" 🎨 Gamma-Korrektur (0.7) für glatte Übergänge")