Astridkraft commited on
Commit
df8253c
·
verified ·
1 Parent(s): 80b59f3

Update controlnet_module.py

Browse files
Files changed (1) hide show
  1. controlnet_module.py +1 -1
controlnet_module.py CHANGED
@@ -617,7 +617,7 @@ class ControlNetProcessor:
617
 
618
  # 1. Zuerst CLOSE, um schwarze Löcher IN der Person zu füllen
619
  kernel_close = np.ones((5,5), np.uint8)
620
- mask_array = cv2.morphologyEx(mask_array, cv2.MORPH_CLOSE, kernel_close, iterations=2)
621
 
622
  # 2. Dann Dilation für bessere Abdeckung
623
  kernel_dilate = np.ones((7,7), np.uint8)
 
617
 
618
  # 1. Zuerst CLOSE, um schwarze Löcher IN der Person zu füllen
619
  kernel_close = np.ones((5,5), np.uint8)
620
+ mask_array = cv2.morphologyEx(mask_array, cv2.MORPH_CLOSE, kernel_close, iterations=3)
621
 
622
  # 2. Dann Dilation für bessere Abdeckung
623
  kernel_dilate = np.ones((7,7), np.uint8)