1adrianb / 1adrianb/face-alignment
pts, pts_img = pts.view(68, 2) * 4, pts_img.view(68, 2)
- Vorherrschende Sprache
- Python
- Sterne
- 7.5k
- Forks
- 1.4k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
` 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吧?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python, pytorch
- Bereich
- computer-vision
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 55/100