INNER CODE UNIT · Python

create_clothing_agnostic_image_debug

fashn-AI/fashn-vton-1.5 · scripts/debug_masks.py:88

def create_clothing_agnostic_image_debug(
    img_np: np.ndarray,
    seg_pred: np.ndarray,
    labels_to_segment_indices: list,
    body_coverage: str,
    output_dir: str,
    mask_value: int = 127,
    min_distance_threshold: float = 100.0,
    baseline_height: float = 864.0,
    mask_limbs: bool = True,
) -> np.ndarray:
    """
    Create clothing-agnostic image with debug visualization of all intermediate masks.
    """
    from fashn_vton.preprocessing.agnostic import IDENTITY_FASHN_LABELS, _create_hybrid_contour_bounded_mask

    print("\n=== Creating Clothing-Agnostic Image (with debug) ===")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…