pycharm相关错误及解决(四)——HigherHRNet

代码源于:https://github.com/HRNet/HigherHRNet-Human-Pose-Estimation

测试流程参考:(24条消息) HigherHRnet详解之实验复现_error:404..的博客-CSDN博客_higherhrnet代码解析

训练过程和整体框架可参考:(24条消息) 【HigherHRNet】 HigherHRNet 详解之 HigherHRNet的整体框架与流程_大黑山修道的博客-CSDN博客_higherhrnet

本文只针对于测试过程。

 

一、问题及解决

1.问题:

ModuleNotFoundError: No module named 'crowdposetools'

具体如下图所示:

原因:

没有crowdpose-api

解决:

在https://github.com/Jeff-sjtu/CrowdPose下载crowdpose-api并改名;

进入以下目录cd /data/zhangyy/PoseEstimation/HigherHRNet/crowdpose-api/PythonAPI;

先运行命令:chmod +x install.sh

再运行命令:bash install.sh

 

二、测试结果

1.测试命令

python tools/valid.py \

    --cfg experiments/coco/higher_hrnet/w32_512_adam_lr1e-3.yaml \

    TEST.MODEL_FILE models/pytorch/pose_coco/pose_higher_hrnet_w32_512.pth

注:如果是其他分辨率模型要对测试命令中的某些参数进行修改。

 

2.测试结果

如下图所示:

 

 

 

 

posted @ 2022-04-20 08:31  Thirteen13th  阅读(450)  评论(0)    收藏  举报