pytorch-openpose icon indicating copy to clipboard operation
pytorch-openpose copied to clipboard

ZeroDivisionError

Open CheungBH opened this issue 3 years ago • 2 comments

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 avatar Mar 04 '21 03:03 CheungBH

Here's the image

ski

CheungBH avatar Mar 04 '21 03:03 CheungBH

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

Hzzone avatar Mar 23 '21 06:03 Hzzone