paddlehub报错求帮助
收藏
C++ Call Stacks (More useful to developers):
--------------------------------------------
Windows not support stack backtrace yet.
----------------------
Error Message Summary:
----------------------
Error: Cannot open file F:\Google\Paddle-Inference-Demo-master\python\mask_detection\models/pyramidbox_lite/model at (D:\1.7.1\paddle\paddle\fluid\inference\api\analysis_predictor.cc:664)
E0517 16:44:40.199975 11424 analysis_config.cc:73] Please compile with gpu to EnableGpu()
I0517 16:44:40.199975 11424 analysis_predictor.cc:84] Profiler is deactivated, and no profiling report will be generated.
1
收藏
Please compile with gpu to EnableGpu(),看错误信息,好像是GPU没启用?
他上面那个错误致命了,就是这个(Error: Cannot open file F:\Google\Paddle-Inference-Demo-master\python\mask_detection\models/pyramidbox_lite/model at (D:\1.7.1\paddle\paddle\fluid\inference\api\analysis_predictor.cc:664))目前还没解决,我也正在查文档
能否提供一下版本信息?
这个报错信息截取得太少了,真看不出具体问题。 可否把信息截全一些!
版本是paddlegpu1.7.1 post107
然后今天又多了个报错
pyramidbox_lite_mobile_mask.processor.save_inference_model(dirname="models")
AttributeError: 'PyramidBoxLiteMobileMask' object has no attribute 'processor'
文档说lite-mobile-mask支持processer sever不支持。我蒙了
ENABLE_GPU
Traceback (most recent call last):
File "F:/Google/Paddle-Inference-Demo-master/python/mask_detection/cam_video.py", line 8, in
mp = MaskPred(True, True, 0)
File "F:\Google\Paddle-Inference-Demo-master\python\mask_detection\mask_detect.py", line 16, in __init__
self.face_detector = Model(DETECT_MODEL_FILE, DETECT_MODEL_PARAM, use_mkldnn, use_gpu, device_id)
File "F:\Google\Paddle-Inference-Demo-master\python\mask_detection\models\pd_model.py", line 19, in __init__
self.predictor = create_paddle_predictor(config)
paddle.fluid.core_avx.EnforceNotMet:
--------------------------------------------
C++ Call Stacks (More useful to developers):
--------------------------------------------
Windows not support stack backtrace yet.
----------------------
Error Message Summary:
----------------------
Error: Cannot open file F:\Google\Paddle-Inference-Demo-master\python\mask_detection\models/pyramidbox_lite/model at (D:\1.7.1\paddle\paddle\fluid\inference\api\analysis_predictor.cc:664)
E0518 13:56:23.495997 8436 analysis_config.cc:73] Please compile with gpu to EnableGpu()
I0518 13:56:23.495997 8436 analysis_predictor.cc:84] Profiler is deactivated, and no profiling report will be generated.
看下了,这个pyramidbox_lite_mobile_mask模型没有 processor() 这个方法呀。 是要进行部署吗?
可以参考:https://www.paddlepaddle.org.cn/hubdetail?name=pyramidbox_lite_mobile_mask&en_category=ObjectDetection
是要进行部署,我在Paddle-Inference-Demo-master这个推理库那个教程上用了这个语句,我也不知道为啥没有啊,我也很懵,这个语句应该是将模型保存到一个文件夹的属性
在哪里看到教程呢,给个链接看看。
你试试看能不能运行出来
https://github.com/PaddlePaddle/Paddle-Inference-Demo/tree/master/python/mask_detection
在 AI Studio 上试了下,好像没问题了 ヽ( ̄▽ ̄)ノ,服务启动成功!
没有启用Gpu?
如果有多个GPU,启用的GPU编号也需要对应吧
我用pycharm运行了一下,也成功了,一开始失败的原因找到了,并不是没调用gpu的原因,gpu主要用于analyize的显存优化啥的,文件里的路径改成了绝对路径就好了,犯了一个低级的错误
可以先查找电脑的gpu编号
paddle推理库支持cpu,致命原因是那个文件打不开那里
路径错误应该是not found吧,cannot open也行嘛?
你好,我在PYcharm上运行,遇到了和你一样的错误,请问是怎么解决的