Skip to content

导出PaddleServing格式模型时报错提示:ModuleNotFoundError: No module named 'paddle.fluid' #9453

@mhh123566

Description

@mhh123566

问题确认 Search before asking

  • 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

paddlepaddle :3.0.0 CPU版本
paddledetection :2.8.1
PS D:\PaddleDetection> python tools/export_model.py -c configs/yolov3/yolov3_mobilenet_v3_large_ssld_270e_voc.yml `

-o weights=output\best_model\model.pdparams --export_serving_model=True 信息: 用提供的模式无法找到文件。 Warning: Unable to use numba in PP-Tracking, please install numba, for example(python3.7):pip install numba==0.56.4Warning: Unable to use numba in PP-Tracking, please install numba, for example(python3.7):pip install numba==0.56.4`
[11/26 19:32:07] ppdet.utils.checkpoint INFO: Skipping import of the encryption module.
[11/26 19:32:10] ppdet.utils.checkpoint INFO: Finish loading model weights: output\best_model\model.pdparams
[11/26 19:32:13] ppdet.engine INFO: Export inference config file to output_inference\yolov3_mobilenet_v3_large_ssld_270e_voc\infer_cfg.yml
[11/26 19:32:13] ppdet.engine INFO: Skipping import of the encryption module.
I1126 19:32:16.917095 2588 program_interpreter.cc:257] New Executor is Running.
[11/26 19:32:16] ppdet.engine INFO: Export model and saved in output_inference\yolov3_mobilenet_v3_large_ssld_270e_voc
Traceback (most recent call last):
File "D:\PaddleDetection\tools\export_model.py", line 122, in
main()
File "D:\PaddleDetection\tools\export_model.py", line 118, in main
run(FLAGS, cfg)
File "D:\PaddleDetection\tools\export_model.py", line 84, in run
from paddle_serving_client.io import inference_model_to_serving
File "C:\Users\ma\AppData\Local\Programs\Python\Python39\lib\site-packages\paddle_serving_client\io_init_.py", line 16, in
from paddle.fluid import Executor
ModuleNotFoundError: No module named 'paddle.fluid'

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions