Hzzone / pytorch-openpose

pytorch implementation of openpose including Hand and Body Pose Estimation.
2.02k stars 391 forks source link

ZeroDivisionError #48

Open CheungBH opened 3 years ago

CheungBH commented 3 years ago

Hello. Thanks for your excellent job. I can successfully in running the demo. But when I was running with another image, I found a ZeroDivisionError

Traceback (most recent call last):
File "/home/hkuit155/Documents/bottom_up/pytorch-openpose/pose_track_demo.py", line 18, in a
candidate, subset = body_estimation(oriImg)
File "/home/hkuit155/Documents/bottom_up/pytorch-openpose/src/body.py", line 131, in call
0.5 * oriImg.shape[0] / norm - 1, 0) ZeroDivisionError: float division by zero

CheungBH commented 3 years ago

Here's the image

ski

Hzzone commented 3 years ago

This problem may be solved in the latest code by changing the norm to a small number.