Update controlnet_module.py
Browse files- 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=
|
| 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)
|