Skip to content

add YuNet five-point landmark generation - #192

Open
Debrato2005 wants to merge 1 commit into
sicxu:masterfrom
Debrato2005:yunet-landmarks
Open

Debrato2005 wants to merge 1 commit into
sicxu:masterfrom
Debrato2005:yunet-landmarks

Conversation

@Debrato2005

Copy link
Copy Markdown

This PR adds a lightweight landmark-generation utility for preparing custom images for Deep3DFaceRecon inference.
Adds generate_landmarks.py
Uses OpenCV YuNet through FaceDetectorYN
Generates the 5×2 landmark files expected by test.py
Preserves the expected landmark orde
Automatically creates the detections/ directory
Supports configurable face-detection confidence threshold
Adds unit coverage for YuNet-to-Deep3DFace landmark conversion
Updates .gitignore for external model weights, generated outputs, and local assets

Compatibility note: This utility uses OpenCV's FaceDetectorYN API, so it requires a newer OpenCV version than the repository's original opencv-python==3.4.9.33 environment. The YuNet generator is intended for opencv-python>=4.5.4. It does not require the full modern Python/PyTorch environment introduced in the separate compatibility PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant