hellojialee / Improved-Body-Parts

Simple Pose: Rethinking and Improving a Bottom-up Approach for Multi-Person Pose Estimation
https://arxiv.org/abs/1911.10529
258 stars 42 forks source link

data/coco_masks_hdf5.py #8

Closed weinaike closed 4 years ago

weinaike commented 4 years ago

prev_center.append(np.append(person_center, max(img_anns[p]["bbox"][2], img_anns[p]["bbox"][3])))

这里的p是固定值值,是否存在问题?宽高的最大值,是当前main_persons的吗?

hellojialee commented 4 years ago

The answer to your second question is yes. We crop and resize the main person according to the larger value among the person width and hight, and thus, the scale ratio of the main person to the image is a fixed value. But we resize it randomly during training. The main person is centered and the nearby persons are probably included in the cropped patch. This trick can make the data prepare and batch training faster. We have not tried other crop and resize operations.