该代码输出的是COCO数据集中图片的人体姿态估计结果(只输出关键点)
一、下载代码
https://github.com/leoxiaobin/deep-high-resolution-net.pytorch
二、运行可视化文件
python visualization/plot_coco.py --prediction output/coco/CBAM_pose_hrnet/CBAM_w32_256x192_adam_lr1e-3/results/keypoints_val2017_results_0.json
三、报错解决
AttributeError: 'NoneType' object has no attribute 'shape'
解决方法:查看图片加载路径是否有误,修改为正确的路径。
parser.add_argument('--image-path',
help='Path of COCO val images',
type=str,
# default='data/coco/images/val2017/'
default='data/coco/val2017/'
)
四、输出运行结果
输出COCO数据集中图片的人体关键点结果。