This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:vim4:npu:demos:yolov7-tiny [2023/09/18 00:28] sravan [Compile and run] |
products:sbc:vim4:npu:demos:yolov7-tiny [2024/05/31 03:36] (current) louis |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~tag> NPU YOLO OpenCV VIM4 ~~ | ~~tag> NPU YOLO OpenCV VIM4 ~~ | ||
- | ====== YOLOv7 | + | ====== YOLOv7-tiny VIM4 Demo - 1 ====== |
{{indexmenu_n> | {{indexmenu_n> | ||
Line 13: | Line 13: | ||
``` | ``` | ||
- | Refer '' | + | Refer '' |
===== Convert the model ===== | ===== Convert the model ===== | ||
Line 20: | Line 20: | ||
Follow Docker official documentation to install Docker: [[https:// | Follow Docker official documentation to install Docker: [[https:// | ||
- | Then fetch the prebuilt NPU Docker | + | Then fetch the prebuilt NPU Docker |
```shell | ```shell | ||
Line 40: | Line 40: | ||
==== Convert ==== | ==== Convert ==== | ||
- | After training model, modify '' | + | After training |
```diff | ```diff | ||
Line 57: | Line 57: | ||
``` | ``` | ||
- | Then, run '' | + | <WRAP important> |
+ | yolo.py has many forward. Right place is class **IDetect** function **fuseforward**. | ||
+ | </ | ||
+ | |||
+ | Then, run '' | ||
```shell | ```shell | ||
Line 88: | Line 92: | ||
``` | ``` | ||
- | Run '' | + | Run '' |
```shell | ```shell | ||
Line 146: | Line 150: | ||
``` | ``` | ||
- | '' | + | '' |
<WRAP tip > | <WRAP tip > | ||
- | If your **YOLOv7_tiny** model classes | + | If your **YOLOv7-tiny** model classes |
</ | </ | ||