Jeff-sjtu/CrowdPose

something wrong with demo

WangChen100 opened this issue · 1 comments

When I run demo.py, an error appears.

TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.

The error is caused by the mismatch of the type of object.
image

Modification as follows will be okey.
self.iouThrs = np.linspace(.5, 0.95,int(np.round( (0.95 - .5) / .05) + 1), endpoint=True) self.recThrs = np.linspace(.0, 1.00, int(np.round( (1.00 - .0) / .01) + 1), endpoint=True)