Astridkraft commited on
Commit
ed5f069
·
verified ·
1 Parent(s): c026a55

Update controlnet_module.py

Browse files
Files changed (1) hide show
  1. controlnet_module.py +4 -1
controlnet_module.py CHANGED
@@ -1226,7 +1226,10 @@ class ControlNetProcessor:
1226
  mask_array = cv2.dilate(mask_array, kernel_extra, iterations=1)
1227
 
1228
  # Nochmal weichzeichnen
1229
- mask_array = cv2.GaussianBlur(mask_array, (11, 11), 2.0)
 
 
 
1230
 
1231
  # ============================================================
1232
  # Maske und Rohmaske auf Originalgröße transformieren (nur für Crop)
 
1226
  mask_array = cv2.dilate(mask_array, kernel_extra, iterations=1)
1227
 
1228
  # Nochmal weichzeichnen
1229
+ #mask_array = cv2.GaussianBlur(mask_array, (11, 11), 2.0)
1230
+
1231
+ # Optional: Nach dem if-Block nochmal sicherstellen
1232
+ print(f"✅ Finale Maske Werte: {np.unique(mask_array)}") # Sollte [0, 255] sein!
1233
 
1234
  # ============================================================
1235
  # Maske und Rohmaske auf Originalgröße transformieren (nur für Crop)