首页 Paddle Serving 帖子详情
安装部署,启用有问题
收藏
快速回复
Paddle Serving 问答服务化部署 1134 2
安装部署,启用有问题
收藏
快速回复
Paddle Serving 问答服务化部署 1134 2

我是想在Window 10配置Sserver模式,使用CPU部署,具体安装:

### 安装包:

1. pip install paddle-serving-server
2. python -m pip install paddle_serving_app

### 获取OCR模型并进行解压
1. python -m paddle_serving_app.package --get_model ocr_rec
2. python -m paddle_serving_app.package --get_model ocr_det

但是参考例子启用的时候报错:

python -m paddle_serving_server.serve --model ocr_det_model --port 9293

错误如下:

λ python -m paddle_serving_server.serve --model ocr_det_model --port 9293
C:\Program Files\Python38\lib\runpy.py:127: RuntimeWarning: 'paddle_serving_server.serve' found in sys.modules after import of package 'paddle_serving_server', but prio
r to execution of 'paddle_serving_server.serve'; this may result in unpredictable behaviour
warn(RuntimeWarning(msg))
D:\PPData\ocr_det_model\serving_server_conf.prototxt
子目录或文件 -p 已经存在。
处理: -p 时出错。
子目录或文件 workdir_9293 已经存在。
处理: workdir_9293 时出错。
命令语法不正确。
touch: cannot touch 'workdir_9293/general_infer_0/fluid_time_file': No such file or directory
Traceback (most recent call last):
File "C:\Program Files\Python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\xxx\AppData\Roaming\Python\Python38\site-packages\paddle_serving_server\serve.py", line 470, in
start_multi_card(args)
File "C:\Users\xxx\AppData\Roaming\Python\Python38\site-packages\paddle_serving_server\serve.py", line 301, in start_multi_card
start_gpu_card_model(is_gpu_mode(args.gpu_ids), serving_port, args)
File "C:\Users\xxx\AppData\Roaming\Python\Python38\site-packages\paddle_serving_server\serve.py", line 284, in start_gpu_card_model
server.prepare_server(
File "C:\Users\xxx\AppData\Roaming\Python\Python38\site-packages\paddle_serving_server\server.py", line 521, in prepare_server
self._prepare_resource(workdir, cube_conf)
File "C:\Users\XXX\AppData\Roaming\Python\Python38\site-packages\paddle_serving_server\server.py", line 289, in _prepare_resource
with open("{}/{}".format(workdir, op_general_model_config_fn),
FileNotFoundError: [Errno 2] No such file or directory: 'workdir_9293/general_infer_0/general_model.prototxt'

 

0
收藏
回复
全部评论(2)
时间顺序
FutureSI
#2 回复于2021-12

使用问题可以到github上提issue

0
回复
charmingNut
#3 回复于2022-04

同学,你解决了吗,求助啊!!

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户