Update controlnet_module.py
Browse files- controlnet_module.py +1 -1
controlnet_module.py
CHANGED
|
@@ -1159,7 +1159,7 @@ class ControlNetProcessor:
|
|
| 1159 |
if coverage_ratio < 0.9:
|
| 1160 |
print(f" ⚠️ Maske zu dünn für Gesicht (<90%)")
|
| 1161 |
print(f" 📈 Zusätzlicher Dilate...")
|
| 1162 |
-
kernel_extra = np.ones((
|
| 1163 |
mask_array = cv2.dilate(mask_array, kernel_extra, iterations=1)
|
| 1164 |
|
| 1165 |
# Nochmal weichzeichnen
|
|
|
|
| 1159 |
if coverage_ratio < 0.9:
|
| 1160 |
print(f" ⚠️ Maske zu dünn für Gesicht (<90%)")
|
| 1161 |
print(f" 📈 Zusätzlicher Dilate...")
|
| 1162 |
+
kernel_extra = np.ones((9, 9), np.uint8)
|
| 1163 |
mask_array = cv2.dilate(mask_array, kernel_extra, iterations=1)
|
| 1164 |
|
| 1165 |
# Nochmal weichzeichnen
|