human-pose-estimation.pytorch icon indicating copy to clipboard operation
human-pose-estimation.pytorch copied to clipboard

confusiuon about get_affine_transform

Open qiuhaining opened this issue 4 years ago • 2 comments

https://github.com/microsoft/human-pose-estimation.pytorch/blob/18f1d0fa5b5db7fe08de640610f3fdbdbed8fb2f/lib/utils/transforms.py#L57 dst_dir = np.array([0, dst_w * -0.5], np.float32) dst[1, :] = np.array([dst_w * 0.5, dst_h * 0.5]) + dst_dir

I can get dst[1, 1] == (dst_h-dst_w)*0.5 but Why?? why not dst_dir == np.array([0, dst_h * -0.5], np.float32)??

qiuhaining avatar Jul 16 '20 04:07 qiuhaining

I have the same confusion, I think the code is incorrect

yfthu avatar Dec 21 '21 04:12 yfthu

收到了!谢谢!

qiuhaining avatar Dec 21 '21 04:12 qiuhaining