This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:vim3:npu:ksnn:demos:yolov8n [2023/12/22 04:01] louis |
products:sbc:vim3:npu:ksnn:demos:yolov8n [2024/02/22 05:19] (current) louis |
||
---|---|---|---|
Line 13: | Line 13: | ||
``` | ``` | ||
- | Refer '' | + | Refer '' |
===== Convert the model ===== | ===== Convert the model ===== | ||
Line 34: | Line 34: | ||
After training the model, modify '' | After training the model, modify '' | ||
- | ```diff | + | ```diff |
diff --git a/ | diff --git a/ | ||
index 0b02eb3..0a6e43a 100644 | index 0b02eb3..0a6e43a 100644 | ||
Line 62: | Line 62: | ||
+ | + | ||
``` | ``` | ||
+ | |||
+ | <WRAP important> | ||
+ | If you pip-installed ultralytics package, you should modify in package. | ||
+ | </ | ||
Create a python file written as follows to export ONNX model. | Create a python file written as follows to export ONNX model. | ||
Line 74: | Line 78: | ||
$ python export.py | $ python export.py | ||
``` | ``` | ||
+ | |||
+ | <WRAP important> | ||
+ | Use [[https:// | ||
+ | |||
+ | {{: | ||
+ | </ | ||
Enter '' | Enter '' | ||
Line 84: | Line 94: | ||
--quantized-dtype asymmetric_affine \ | --quantized-dtype asymmetric_affine \ | ||
--source-files ./ | --source-files ./ | ||
+ | --batch-size 1 \ | ||
+ | --iterations 1 \ | ||
--kboard VIM3 --print-level 0 | --kboard VIM3 --print-level 0 | ||
``` | ``` | ||
- | If you use '' | + | If you want to use more quantified images, please modify '' |
+ | |||
+ | If you use '' | ||
If run succeed, converted model and library will generate in '' | If run succeed, converted model and library will generate in '' | ||
Line 112: | Line 126: | ||
Put '' | Put '' | ||
+ | |||
+ | If your model' | ||
+ | |||
+ | ```shell | ||
+ | LISTSIZE = classes number + 64 | ||
+ | ``` | ||
==== Picture input demo ==== | ==== Picture input demo ==== |