Spaces:
Sleeping
Sleeping
Update faceless_processing.py
Browse files- faceless_processing.py +3 -3
faceless_processing.py
CHANGED
|
@@ -94,7 +94,7 @@ class LineartConfig:
|
|
| 94 |
bilateral_sigma_color: int = 90 # less aggressive β preserves child/small boundaries
|
| 95 |
bilateral_sigma_space: int = 90
|
| 96 |
gaussian_ksize: int = 9 # moderate pre-blur (13 was too large for small subjects)
|
| 97 |
-
min_contour_perimeter: float =
|
| 98 |
interior_line_thickness: int = 3 # thinner than silhouette, embroidery-appropriate
|
| 99 |
|
| 100 |
# Secondary detail pass β OFF (adds too much clothing/texture noise)
|
|
@@ -107,11 +107,11 @@ class LineartConfig:
|
|
| 107 |
detail_bilateral_sigma: int = 60
|
| 108 |
|
| 109 |
# Embroidery stitch feasibility β lower to preserve small subjects (children)
|
| 110 |
-
min_embroidery_stitch_px: int =
|
| 111 |
|
| 112 |
# Auto-Canny sigma β 0.28 catches softer edges of smaller subjects (children, hands)
|
| 113 |
# while still filtering out most skin/fabric texture noise.
|
| 114 |
-
canny_sigma: float = 0.
|
| 115 |
|
| 116 |
# Aspect ratio filter: 0 = disabled. Enable (e.g. 1.8) only if blob noise reappears.
|
| 117 |
min_aspect_ratio: float = 0
|
|
|
|
| 94 |
bilateral_sigma_color: int = 90 # less aggressive β preserves child/small boundaries
|
| 95 |
bilateral_sigma_space: int = 90
|
| 96 |
gaussian_ksize: int = 9 # moderate pre-blur (13 was too large for small subjects)
|
| 97 |
+
min_contour_perimeter: float = 35.0 # lower β children have shorter contour lines
|
| 98 |
interior_line_thickness: int = 3 # thinner than silhouette, embroidery-appropriate
|
| 99 |
|
| 100 |
# Secondary detail pass β OFF (adds too much clothing/texture noise)
|
|
|
|
| 107 |
detail_bilateral_sigma: int = 60
|
| 108 |
|
| 109 |
# Embroidery stitch feasibility β lower to preserve small subjects (children)
|
| 110 |
+
min_embroidery_stitch_px: int = 30
|
| 111 |
|
| 112 |
# Auto-Canny sigma β 0.28 catches softer edges of smaller subjects (children, hands)
|
| 113 |
# while still filtering out most skin/fabric texture noise.
|
| 114 |
+
canny_sigma: float = 0.30
|
| 115 |
|
| 116 |
# Aspect ratio filter: 0 = disabled. Enable (e.g. 1.8) only if blob noise reappears.
|
| 117 |
min_aspect_ratio: float = 0
|