python deploy/pipeline/pipeline.py运行后卡死不动了 #14944
Unanswered
chenhao95120
asked this question in
Q&A
Replies: 1 comment
-
你的问题可能是由于以下几个原因导致 PaddleDetection 推理过程中卡住: 可能的原因及解决方案:1. PaddlePaddle 版本兼容性问题
解决方案: pip uninstall paddlepaddle
pip install paddlepaddle==2.6.1 2. 推理模型加载太慢或资源分配不合理
解决方案:
3. Paddle Inference 执行
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
python deploy/pipeline/pipeline.py --config deploy/pipeline/config/infer_cfg_pphuman.yml --image_file=/Users/hc/human-detection-v2/PaddleDetection/demo_input/human_attr.jpg --device=cpu
之后代码运行到 self.predictor.run(self.input)就不动了,等了20几分钟还是停在这里
进程显示:
Python 3.10 cpu 99.9%(实际本机内存没有吃慢,这边也设置了os.environ["CPU_NUM"] = "16" )
内存:
844.5MB
本地配置:
Python 3.10.12
Apple M2pip
paddlepaddle2.6.2(试了2.5.2、2.4.2都不行)
Beta Was this translation helpful? Give feedback.
All reactions