Update controlnet_module.py
Browse files- controlnet_module.py +1 -1
controlnet_module.py
CHANGED
|
@@ -620,7 +620,7 @@ class ControlNetProcessor:
|
|
| 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((
|
| 624 |
mask_array = cv2.dilate(mask_array, kernel_dilate, iterations=1)
|
| 625 |
|
| 626 |
print(" ✅ MORPH_CLOSE füllt schwarze Löcher in der Person")
|
|
|
|
| 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)
|
| 624 |
mask_array = cv2.dilate(mask_array, kernel_dilate, iterations=1)
|
| 625 |
|
| 626 |
print(" ✅ MORPH_CLOSE füllt schwarze Löcher in der Person")
|