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

@@ -46,7 +46,7 @@ fastdeploy::vision::detection::YOLOv5Lite(
const string& model_file,
const string& params_file = "",
const RuntimeOption& runtime_option = RuntimeOption(),
const Frontend& model_format = Frontend::ONNX)
const ModelFormat& model_format = ModelFormat::ONNX)
```
YOLOv5Lite模型加载和初始化其中model_file为导出的ONNX模型格式。
@@ -56,7 +56,7 @@ YOLOv5Lite模型加载和初始化其中model_file为导出的ONNX模型格
> * **model_file**(str): 模型文件路径
> * **params_file**(str): 参数文件路径当模型格式为ONNX时此参数传入空字符串即可
> * **runtime_option**(RuntimeOption): 后端推理配置默认为None即采用默认配置
> * **model_format**(Frontend): 模型格式默认为ONNX格式
> * **model_format**(ModelFormat): 模型格式默认为ONNX格式
#### Predict函数