Files
FastDeploy/examples/vision/ocr/PP-OCRv3/serving/models/pp_ocr/config.pbtxt
T
Thomas Young 95036392e7 [Serving] add ocr serving example (#627)
* add ocr serving example

* 1

1

* Add files via upload

* Update README.md

* Delete ocr_pipeline.png

* Add files via upload

* Delete ocr_pipeline.png

* Add files via upload

* 1

1

* 1

1

* Update README.md

* 1

1

* fix codestyle

* fix codestyle

Co-authored-by: Jason <jiangjiajun@baidu.com>
Co-authored-by: heliqi <1101791222@qq.com>
2022-11-28 13:25:09 +08:00

79 lines
1.3 KiB
Protocol Buffer Text Format

name: "pp_ocr"
platform: "ensemble"
max_batch_size: 1
input [
{
name: "INPUT"
data_type: TYPE_UINT8
dims: [ -1, -1, 3 ]
}
]
output [
{
name: "rec_texts"
data_type: TYPE_STRING
dims: [ -1, 1 ]
},
{
name: "rec_scores"
data_type: TYPE_FP32
dims: [ -1, 1 ]
}
]
ensemble_scheduling {
step [
{
model_name: "det_preprocess"
model_version: 1
input_map {
key: "INPUT_0"
value: "INPUT"
}
output_map {
key: "OUTPUT_0"
value: "infer_input"
}
output_map {
key: "OUTPUT_1"
value: "infos"
}
},
{
model_name: "det_runtime"
model_version: 1
input_map {
key: "x"
value: "infer_input"
}
output_map {
key: "sigmoid_0.tmp_0"
value: "infer_output"
}
},
{
model_name: "det_postprocess"
model_version: 1
input_map {
key: "POST_INPUT_0"
value: "infer_output"
}
input_map {
key: "POST_INPUT_1"
value: "infos"
}
input_map {
key: "ORI_IMG"
value: "INPUT"
}
output_map {
key: "POST_OUTPUT_0"
value: "rec_texts"
}
output_map {
key: "POST_OUTPUT_1"
value: "rec_scores"
}
}
]
}