PaddlePaddle / FastDeploy

⚡️An Easy-to-use and Fast Deep Learning Model Deployment Toolkit for ☁️Cloud 📱Mobile and 📹Edge. Including Image, Video, Text and Audio 20+ main stream scenarios and 150+ SOTA models with end-to-end optimization, multi-platform and multi-framework support.
https://www.paddlepaddle.org.cn/fastdeploy
Apache License 2.0
2.8k stars 440 forks source link

module 'fastdeploy' has no attribute 'RuntimeOption' #2436

Open GaoYuelong opened 2 months ago

GaoYuelong commented 2 months ago

温馨提示:根据社区不完全统计,按照模板提问,可以加快回复和解决问题的速度


环境

通过如下命令安装的.提示RuntimeOption不存在

pip install fastdeploy-python -f https://www.paddlepaddle.org.cn/whl/fastdeploy.html 出错信息:

fd <module 'fastdeploy' (namespace)>
Traceback (most recent call last):
  File "/Users/che3vinci/PaddleOCR/deploy/fastdeploy/cpu-gpu/python/infer.py", line 185, in <module>
    det_option, cls_option, rec_option = build_option(args)
  File "/Users/che3vinci/PaddleOCR/deploy/fastdeploy/cpu-gpu/python/infer.py", line 75, in build_option
    det_option = fd.RuntimeOption()
AttributeError: module 'fastdeploy' has no attribute 'RuntimeOption'
Jiang-Jia-Jun commented 2 months ago

确保当前目录下,没有命名为fastdeploy的代码文件或目录

will-bug commented 2 months ago

同样出现了这个问题, 当前代码并没有出现同名文件