kevinlin311tw / keras-openpose-reproduce

Keras implementation of Realtime Multi-Person Pose Estimation
110 stars 43 forks source link

Inference bug fix #19

Closed elb3k closed 2 years ago

elb3k commented 4 years ago

There is bug with process function in predict.py, which makes this function usable only on first call.

The source of this problem comes from config_reader.py: param['scale_search'] = map(float, param['scale_search'])

where param['scale_search'] becomes usable only once in process.py. next calls to process function will return unchanged image.

By changing param['scale_search'] = map(float, param['scale_search']) to param['scale_search'] = list(map(float, param['scale_search']))

we can solve this problem