bearpaw / pytorch-pose

A PyTorch toolkit for 2D Human Pose Estimation.
GNU General Public License v3.0
1.1k stars 251 forks source link

fix cv2.resize dsize order #116

Closed jiangwei221 closed 4 years ago

jiangwei221 commented 4 years ago

In the last merge, the cv2.resize is not used properly. The order of the dsize should be (width, height). demo:

>>> import cv2
>>> import numpy as np
>>> img = np.ones([128, 128, 3])
>>> new_img = cv2.resize(img, (128, 256))
>>> new_img.shape
(256, 128, 3)
jiangwei221 commented 4 years ago

Didn't fully verify the whole method, just a quick fix the that bug.

bearpaw commented 4 years ago

Thanks for the fix. Close because it is included in #117