mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
[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:
@@ -7,7 +7,7 @@
|
||||
|
||||
本目录下提供`infer.py`快速完成YOLOv6在CPU/GPU,以及GPU上通过TensorRT加速部署的示例。执行如下脚本即可完成
|
||||
|
||||
```
|
||||
```bash
|
||||
#下载部署示例代码
|
||||
git clone https://github.com/PaddlePaddle/FastDeploy.git
|
||||
cd examples/vision/detection/yolov6/python/
|
||||
@@ -31,7 +31,7 @@ python infer.py --model yolov6s.onnx --image 000000014439.jpg --device gpu --use
|
||||
|
||||
## YOLOv6 Python接口
|
||||
|
||||
```
|
||||
```python
|
||||
fastdeploy.vision.detection.YOLOv6(model_file, params_file=None, runtime_option=None, model_format=Frontend.ONNX)
|
||||
```
|
||||
|
||||
@@ -46,7 +46,7 @@ YOLOv6模型加载和初始化,其中model_file为导出的ONNX模型格式
|
||||
|
||||
### predict函数
|
||||
|
||||
> ```
|
||||
> ```python
|
||||
> YOLOv6.predict(image_data, conf_threshold=0.25, nms_iou_threshold=0.5)
|
||||
> ```
|
||||
>
|
||||
|
Reference in New Issue
Block a user