PaddlePaddle / PaddlePaddle/FastDeploy

使用FastDeploy搭建PP-OCRv3模型服务后怎么配置参数

Open
#2,056 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.7k
Forks
756
Avg merge
19h 28m
Merged PRs (30d)
4

Description

系统环境/System Environment:docker
版本号/Version: fastdeploy:1.0.4-cpu-only-21.10

我需要配置最大只识别两行文字,看文档是有max_candidates这么个配置是符合我要求的。
我能通过下面的命令使用工具获取只有两个文本框的图片
python3 infer_det.py -c ch_PP-OCRv3_det_student.yml -o Global.infer_img="12.jpg" Global.pretrained_model="student" Global.use_gpu=False PostProcess.max_candidates=2
12

但是这个配置我怎么在FastDeploy服务里配置呢?我想在java上面调用,所以只能调用服务。我看着服务里的文件也没有长得像yml的东西啊
QQ图片20230622034214

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the shown infer_det.py command and ch_PP-OCRv3_det_student.yml to understand how PostProcess.max_candidates=2 is applied. Then inspect the FastDeploy service configuration and Java-serving entry points, which the issue does not name, to determine whether this option is exposed; done means documenting a working service configuration and verifying that the Java call returns at most two text boxes.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java, python
Domain
api, backend
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.