1adrianb / 1adrianb/face-alignment

pts, pts_img = pts.view(68, 2) * 4, pts_img.view(68, 2)

未关闭
#375 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
7.5k
派生
1.4k
PR 合并指标
30 天内没有已合并 PR

描述

` 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吧?

贡献指南

这个仓库没有索引到贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
python, pytorch
领域
computer-vision
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。