Skip to content

Fix: handle RetinaFace landmarks correctly (nose, mouth_left and mouth_right)#24

Open
AdaiasMagdiel wants to merge 1 commit intoAstrotomic:mainfrom
AdaiasMagdiel:fix/retinaface-landmarks
Open

Fix: handle RetinaFace landmarks correctly (nose, mouth_left and mouth_right)#24
AdaiasMagdiel wants to merge 1 commit intoAstrotomic:mainfrom
AdaiasMagdiel:fix/retinaface-landmarks

Conversation

@AdaiasMagdiel
Copy link

This PR fixes #23.

  • Issue: Unknown named parameter $nose when using Detector::RETINAFACE
  • Cause: RetinaFace returns landmarks (nose, mouth_left, mouth_right, etc.) not properly mapped.
  • Fix: Normalize landmark keys before constructing the object.

Tested with:

  • Detector::RETINAFACE
  • FaceRecognitionModel::ARCFACE

Result: represent() now returns embeddings successfully without crashing.

…h_right)

This PR fixes [Astrotomic#23](Astrotomic#23).

- Issue: `Unknown named parameter $nose` when using `Detector::RETINAFACE`
- Cause: RetinaFace returns landmarks (`nose`, `mouth_left`, `mouth_right`, etc.) not properly mapped.
- Fix: Normalize landmark keys before constructing the object.

Tested with:
- `Detector::RETINAFACE`
- `FaceRecognitionModel::ARCFACE`

Result: `represent()` now returns embeddings successfully without crashing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Error when using Detector::RETINAFACE

1 participant