[docs][win] add windows c++ sdk demo to examples (#136)

* [docs] format docs with markdown with language tags

* [docs][win] add windows c++ sdk demo

* [docs][win] add windows c++ sdk demo to examples

* [docs][api] update runtime_option docs
This commit is contained in:
DefTruth
2022-08-22 10:53:00 +08:00
committed by GitHub
parent f7e4b8490f
commit beddcba900
54 changed files with 278 additions and 164 deletions

View File

@@ -8,7 +8,7 @@
以ArcFace为例子, 提供`infer_arcface.py`快速完成ArcFace在CPU/GPU以及GPU上通过TensorRT加速部署的示例。执行如下脚本即可完成
```
```bash
#下载部署示例代码
git clone https://github.com/PaddlePaddle/FastDeploy.git
cd examples/vision/faceid/insightface/python/
@@ -35,7 +35,7 @@ python infer_arcface.py --model ms1mv3_arcface_r100.onnx --face test_lite_focal_
<img width="220" float="left" src="https://user-images.githubusercontent.com/67993288/184321622-d9a494c3-72f3-47f1-97c5-8a2372de491f.JPG">
</div>
```
```bash
Prediction Done!
--- [Face 0]:FaceRecognitionResult: [Dim(512), Min(-2.309220), Max(2.372197), Mean(0.016987)]
--- [Face 1]:FaceRecognitionResult: [Dim(512), Min(-2.288258), Max(1.995104), Mean(-0.003400)]
@@ -46,7 +46,7 @@ Detect Done! Cosine 01: 0.814385, Cosine 02:-0.059388
## InsightFace Python接口
```
```python
fastdeploy.vision.faceid.ArcFace(model_file, params_file=None, runtime_option=None, model_format=Frontend.ONNX)
fastdeploy.vision.faceid.CosFace(model_file, params_file=None, runtime_option=None, model_format=Frontend.ONNX)
fastdeploy.vision.faceid.PartialFC(model_file, params_file=None, runtime_option=None, model_format=Frontend.ONNX)
@@ -64,7 +64,7 @@ ArcFace模型加载和初始化其中model_file为导出的ONNX模型格式
### predict函数
> ```
> ```python
> ArcFace.predict(image_data, conf_threshold=0.25, nms_iou_threshold=0.5)
> ```
>