garmentiq.landmark.refinement

Refinement of detected landmarks against a segmentation mask.

The pose model predicts landmarks to within a few pixels, which can leave them just inside or outside the garment edge. Refinement searches a small window around each point and moves it onto the mask boundary, after blurring the mask to smooth away jagged edges.

1# garmentiq/landmark/refinement/__init__.py
2"""Refinement of detected landmarks against a segmentation mask.
3
4The pose model predicts landmarks to within a few pixels, which can leave them just
5inside or outside the garment edge. Refinement searches a small window around each
6point and moves it onto the mask boundary, after blurring the mask to smooth away
7jagged edges.
8"""
9from .refine_landmark_with_blur import refine_landmark_with_blur