1adrianb / 1adrianb/face-alignment

about tensor input

Ouverte
#330 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
7.5k
Forks
1.4k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

hey, thanks for your share.
when using the method 'get_landmarks_from_image', I input a tensor whose size is (1, 3, 128, 128) to image_or_path. then it will call method 'get_image' from face_alignment.utils. first, it transforms tensor into numpy, then steps into 'elif image.ndim == 4: \n\t image = image[..., :3]. this step changes the size of numpy from (1, 3, 128, 128) into (1, 3, 128, 3). actually, final size will not be used correctly in the method 'detect_from_image' in face_alignment.detection.sfd.sfd_detector.SFDDecetector. if it's a bug here, or it because of my wrong usage.
hope for your reply!

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Look at the `get_landmarks_from_image` method and the `get_image` function in `face_alignment/utils.py`. The issue describes a tensor shape transformation from (1, 3, 128, 128) to (1, 3, 128, 3). Examine the indexing logic in the `elif image.ndim == 4:` block. Then trace the call to `detect_from_image` in `face_alignment/detection/sfd/sfd_detector.py` to see how the resulting shape is used. Run a test with a dummy tensor to reproduce the shape mismatch.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python, pytorch
Domaine
computer-vision
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.