You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/duo/application-development/tdl-sdk/tdl-sdk-yolov5.md
+17-26
Original file line number
Diff line number
Diff line change
@@ -8,37 +8,28 @@ This program inference YOLOv5 model for object detection
8
8
9
9
## Cross-Compile YOLO Program for PC
10
10
11
-
- Duo 256 YOLOv5 code location: [sample_yolov5.cpp](https://github.com/milkv-duo/cvitek-tdl-sdk-sg200x/blob/main/sample/cvi_yolo/sample_yolov5.cpp)
12
-
13
-
### Compilation method:
14
-
- Script compilation:
15
-
Refer to the previous section [Introduction](https://milkv.io/zh/docs/duo/application-development/tdl-sdk/tdl-sdk-introduction) for compiling the sample program using the provided methods.
16
-
17
-
- Manual compilation:
18
-
- Open the cvitek-tdl-sdk-sg200x/sample/cvi_yolo directory
19
-
```bash
20
-
cd cvitek-tdl-sdk-sg200x/sample/cvi_yolo
21
-
```
22
-
- Compile YOLO series programs to obtain the sample_yolov5 binary file
23
-
```bash
24
-
make KERNEL_ROOT=../../../cvitek-tdl-sdk-sg200x/sample MW_PATH=../../../cvitek-tdl-sdk-sg200x/sample/3rd/middleware/v2 TPU_PATH=../../../cvitek-tdl-sdk-sg200x/sample/3rd/tpu IVE_PATH=../../../cvitek-tdl-sdk-sg200x/sample/3rd/ive USE_TPU_IVE=ON CHIP=CV180X SDK_VER=musl_riscv64 -j10
25
-
```
26
-
- *(Optional) Delete the generated target binary files*
Refer to the previous section [Introduction](https://milkv.io/zh/docs/duo/application-development/tdl-sdk/tdl-sdk-introduction) for compiling the sample program using the provided methods. After compilation is completed, the `sample_yolov5` program we need will be generated in the `sample/cvi_yolo/` directory.
30
16
31
17
## Obtain cvimodel
18
+
32
19
You can either download precompiled yolov5s INT8 symmetric or asymmetric quantized cvimodel models directly, or manually convert the models as described in [Model Compilation](#model-compilation).
- First, clone the YOLOv5 official repository. The repository link is: [ultralytics/yolov5\: YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite](https://github.com/ultralytics/yolov5)
0 commit comments