human-pose-estimation.pytorch
human-pose-estimation.pytorch copied to clipboard
confusiuon about get_affine_transform
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)
??
I have the same confusion, I think the code is incorrect
收到了!谢谢!