Update controlnet_module.py
Browse files- controlnet_module.py +1 -1
controlnet_module.py
CHANGED
|
@@ -317,7 +317,7 @@ class ControlNetProcessor:
|
|
| 317 |
|
| 318 |
|
| 319 |
# MORPH_CLOSE auf dem schwarzen Hintergrund (feine Löcher)- kleiner Kernel filigrane Heranarbeitung an Person,
|
| 320 |
-
# es werden aber nur kleine Löcher in Umgebung von weiß nach schwarz geändert!
|
| 321 |
kernel_close_small = np.ones((3, 3), np.uint8)
|
| 322 |
working_mask = cv2.morphologyEx(working_mask, cv2.MORPH_CLOSE, kernel_close_small, iterations=1)
|
| 323 |
print(f" ✅ MORPH_CLOSE (3x3) - Feine Löcher im Hintergrund geschlossen")
|
|
|
|
| 317 |
|
| 318 |
|
| 319 |
# MORPH_CLOSE auf dem schwarzen Hintergrund (feine Löcher)- kleiner Kernel filigrane Heranarbeitung an Person,
|
| 320 |
+
# es werden aber auch nur kleine Löcher in Umgebung von weiß nach schwarz geändert!
|
| 321 |
kernel_close_small = np.ones((3, 3), np.uint8)
|
| 322 |
working_mask = cv2.morphologyEx(working_mask, cv2.MORPH_CLOSE, kernel_close_small, iterations=1)
|
| 323 |
print(f" ✅ MORPH_CLOSE (3x3) - Feine Löcher im Hintergrund geschlossen")
|