PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
22.08k stars 5.55k forks source link

Paddle Inference运行预测示例程序mobilenetv1_full_api.py报错:ValueError: Unsupported backend: . #49688

Closed sweetboxwwy closed 8 months ago

sweetboxwwy commented 1 year ago

运行预测示例程序mobilenetv1_full_api.py报错:ValueError: Unsupported backend: .

python mobilenetv1_full_api.py --model_dir=./mobilenet_v1

Traceback (most recent call last): File "mobilenetv1_full_api.py", line 237, in RunModel(args) File "mobilenetv1_full_api.py", line 184, in RunModel raise ValueError("Unsupported backend: %s." % args.backend) ValueError: Unsupported backend: .

paddle-bot[bot] commented 1 year ago

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档常见问题历史Issue来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQ and Github Issue to get the answer.Have a nice day!

paddle-bot[bot] commented 1 year ago

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

GuoxiaWang commented 1 year ago

从错误信息看, args.backend.,请确认一下,是否符合输入的规定

sweetboxwwy commented 1 year ago

从错误信息看, args.backend.,请确认一下,是否符合输入的规定

代码参考的官方的,没有修改过。https://github.com/PaddlePaddle/Paddle-Lite/blob/develop/lite/demo/python/mobilenetv1_full_api.py

GuoxiaWang commented 1 year ago

从代码上看, 是在这行报错了 https://github.com/PaddlePaddle/Paddle-Lite/blob/develop/lite/demo/python/mobilenetv1_full_api.py#L185

从逻辑上看,是需要手工设定 backend 的。

可选项参考参数说明 https://github.com/PaddlePaddle/Paddle-Lite/blob/develop/lite/demo/python/mobilenetv1_full_api.py#L45

paddle-bot[bot] commented 8 months ago

Since you haven\'t replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。