1adrianb / 1adrianb/face-alignment
pts, pts_img = pts.view(68, 2) * 4, pts_img.view(68, 2)
- Langage dominant
- Python
- Étoiles
- 7.5k
- Forks
- 1.4k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
` pts, pts_img, scores = self.get_preds_fromhm(out, center.numpy(), scale)
pts, pts_img = torch.from_numpy(pts), torch.from_numpy(pts_img)
pts, pts_img = pts.view(68, 2) * 4, pts_img.view(68, 2)
scores = scores.squeeze(0)`
我测试这里的pts.view(68, 2)本身返回的就是256,这里不需要乘4吧?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Look at the get_preds_fromhm function in the model to understand its output scaling. Check if pts are already in the correct coordinate space (e.g., 256x256) and whether the multiplication by 4 is necessary. Run the existing tests or create a small script to verify the landmark coordinates before and after the scaling operation.
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é
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 55/100