Pytorch_Realtime_Multi-Person_Pose_Estimation icon indicating copy to clipboard operation
Pytorch_Realtime_Multi-Person_Pose_Estimation copied to clipboard

how to prepocessing??

Open dldldlfma opened this issue 6 years ago • 1 comments

Hi~!

I hope to use your nice program

but i don't know how to use it.....

I download coco dataset

but generate_json_mask.py is not work....

could you tell me more specific example?

i used this command

python3 generate_json_mask.py
--ann_path /home/ksg/Downloads/coco/annotations/instances_train2017.json
--json_path /home/ksg/Openpose_file
--mask_dir /home/ksg/Openpose_file
--filelist_path /home/ksg/Openpose_file/filelist
--masklist_path /home/ksg/Openpose_file/masklist

and i saw this error message

loading annotations into memory... Done (t=11.69s) creating index... index created! Traceback (most recent call last): File "generate_json_mask.py", line 172, in processing(args) File "generate_json_mask.py", line 68, in processing if img_anns[p]['num_keypoints'] < 5 or img_anns[p]['area'] < 32 * 32: KeyError: 'num_keypoints'

actually i don't understand how to use it....

could you make a simple guide for me?

Thank you so much

dldldlfma avatar Jan 06 '18 17:01 dldldlfma

the ann_path is person_keypoints_train2017.json, not instances_train2017.json

last-one avatar Jan 07 '18 05:01 last-one