[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

@@ -7,7 +7,7 @@
本目录下提供`infer.py`快速完成YOLOv5在CPU/GPU以及GPU上通过TensorRT加速部署的示例。执行如下脚本即可完成
```
```bash
#下载部署示例代码
git clone https://github.com/PaddlePaddle/FastDeploy.git
cd examples/vision/detection/yolov5/python/
@@ -30,7 +30,7 @@ python infer.py --model yolov5s.onnx --image 000000014439.jpg --device gpu --use
## YOLOv5 Python接口
```
```python
fastdeploy.vision.detection.YOLOv5(model_file, params_file=None, runtime_option=None, model_format=Frontend.ONNX)
```
@@ -45,7 +45,7 @@ YOLOv5模型加载和初始化其中model_file为导出的ONNX模型格式
### predict函数
> ```
> ```python
> YOLOv5.predict(image_data, conf_threshold=0.25, nms_iou_threshold=0.5)
> ```
>