Rename Frontend to ModelFormat in documents (#265)

This commit is contained in:
Jason
2022-09-22 14:00:34 +08:00
committed by GitHub
parent 329477f825
commit 82f0d2b652
49 changed files with 118 additions and 118 deletions

View File

@@ -98,7 +98,7 @@ PPOCRSystemv2 的初始化,由检测,识别模型串联构成(无分类器)
```
fastdeploy::vision::ocr::DBDetector(const std::string& model_file, const std::string& params_file = "",
const RuntimeOption& custom_option = RuntimeOption(),
const Frontend& model_format = Frontend::PADDLE);
const ModelFormat& model_format = ModelFormat::PADDLE);
```
DBDetector模型加载和初始化其中模型为paddle模型格式。
@@ -108,7 +108,7 @@ DBDetector模型加载和初始化其中模型为paddle模型格式。
> * **model_file**(str): 模型文件路径
> * **params_file**(str): 参数文件路径当模型格式为ONNX时此参数传入空字符串即可
> * **runtime_option**(RuntimeOption): 后端推理配置默认为None即采用默认配置
> * **model_format**(Frontend): 模型格式默认为Paddle格式
> * **model_format**(ModelFormat): 模型格式默认为Paddle格式
### Classifier类与DBDetector类相同
@@ -118,7 +118,7 @@ DBDetector模型加载和初始化其中模型为paddle模型格式。
const std::string& params_file = "",
const std::string& label_path = "",
const RuntimeOption& custom_option = RuntimeOption(),
const Frontend& model_format = Frontend::PADDLE);
const ModelFormat& model_format = ModelFormat::PADDLE);
```
Recognizer类初始化时,需要在label_path参数中,输入识别模型所需的label文件其他参数均与DBDetector类相同