Comments (3)
config.yml
#worker_num, 最大并发数。当build_dag_each_worker=True时, 框架会创建worker_num个进程,每个进程内构建grpcSever和DAG
##当build_dag_each_worker=False时,框架会设置主线程grpc线程池的max_workers=worker_num
worker_num: 1
#http端口, rpc_port和http_port不允许同时为空。当rpc_port可用且http_port为空时,不自动生成http_port
http_port: 18080
rpc_port: 9993
dag:
#op资源类型, True, 为线程模型;False,为进程模型
is_thread_op: False
op:
imagenet:
#并发数,is_thread_op=True时,为线程并发;否则为进程并发
concurrency: 1
#当op配置没有server_endpoints时,从local_service_conf读取本地服务配置
local_service_conf:
#uci模型路径
model_config: ResNet50_vd_serving
#计算硬件类型: 空缺时由devices决定(CPU/GPU),0=cpu, 1=gpu, 2=tensorRT, 3=arm cpu, 4=kunlun xpu
device_type: 1
#计算硬件ID,当devices为""或不写时为CPU预测;当devices为"0", "0,1,2"时为GPU预测,表示使用的GPU卡
devices: "0" # "0,1"
#client类型,包括brpc, grpc和local_predictor.local_predictor不启动Serving服务,进程内预测
client_type: local_predictor
#Fetch结果列表,以client_config中fetch_var的alias_name为准
fetch_list: ["prediction"]
from serving.
Message that will be displayed on users' first issue
from serving.
pipeline.log中报错显示
Traceback (most recent call last):
File "/home/aistudio/.data/webide/pip/lib/python3.7/site-packages/paddle_serving_server/pipeline/operator.py", line 1105, in _run_postprocess
logid_dict.get(data_id))
File "recognition_web_service.py", line 94, in postprocess
boxes = self.img_postprocess(fetch_dict, visualize=False)
File "/home/aistudio/.data/webide/pip/lib/python3.7/site-packages/paddle_serving_app/reader/image_reader.py", line 427, in call
self.clsid2catid)
File "/home/aistudio/.data/webide/pip/lib/python3.7/site-packages/paddle_serving_app/reader/image_reader.py", line 344, in _get_bbox_result
lod = [fetch_map[fetch_name + '.lod']]
KeyError: 'scale_factor.lod'
ERROR 2024-03-18 19:23:33,028 [dag.py:410] (data_id=0 log_id=0) Failed to predict: (data_id=0 log_id=0) [det|0] Failed to postprocess: 'scale_factor.lod'
from serving.
Related Issues (20)
- undefined symbol: _dl_sym, version GLIBC_PRIVATE HOT 3
- PaddleDetection+Serving部署,运行时提示:undefined symbol: _dl_sym, version GLIBC_PRIVATE HOT 2
- Paddle Serving C++ 部署 启动失败 pdserving.cpp:195] Failed initialize workflow manager HOT 2
- 当客户端通过GRPC发过来的数据包的模型输入信息和图片大小和Serving上跑的模型不一致时,Sering服务会挂掉 HOT 1
- After executing client = Client(), an exception FatalError: `Segmentation fault` is detected by the operating system. HOT 1
- 安装serving失败, ERROR: Could not build wheels for grpcio, grpcio-tools HOT 4
- 更新 HOT 4
- 什么时候支持cuda11.7 11.8 12.0 HOT 3
- No module named 'paddle.fluid' HOT 4
- python/pipeline/operator.py line:1073 bug导致报错 IndexError: list index out of range HOT 2
- 如何Debug c++ serving HOT 2
- prometheus监控,启动后未发现监控指标 HOT 1
- serving报维度匹配错误 HOT 3
- ModuleNotFoundError: No module named 'paddle_serving_server.proto HOT 1
- 想同时封装一个paddlepaddle paddlenlp paddleserving的镜像,非常难 你们没有测过么 HOT 4
- 海光X86+昆仑芯RG800,请问 registry.baidubce.com/paddlepaddle/serving:xpu-x86连xpu显卡都看不到
- serving编译失败 HOT 2
- Is there a simple way for Healthcheck? HOT 1
- TypeError: prepare_pipeline_config() got an unexpected keyword argument 'yml_dict' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serving.