trrahul / densepose-video

Code to run densepose on video with detectron. https://github.com/facebookresearch/Detectron
GNU General Public License v3.0
62 stars 18 forks source link

Aspect Ratio running infer script #5

Open kaisark opened 6 years ago

kaisark commented 6 years ago

I ran into an aspect ratio issue (looked warped) running the latest infer script, so I installed (pip install imutils) the imutils python package and used imutils instead of the cv2.resize command. It seemed to work for me.

Issue Line: "im = cv2.resize(im, (int(1280/1),int(720/1)))"

https://github.com/jrosebr1/imutils

Example: import imutils

im = imutils.resize(im, width=1080)