1adrianb / 1adrianb/face-alignment
pts, pts_img = pts.view(68, 2) * 4, pts_img.view(68, 2)
- Lingua principale
- Python
- Stelle
- 7.5k
- Fork
- 1.4k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
` 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吧?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python, pytorch
- Ambito
- computer-vision
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100