ONNX Model Zoo

AXERA-TECH/YOLOv8-Seg

By AXERA-TECH · ↓ 6 · ♥ 0 · Updated 2025-11-26

What's in this repo

This page lists the files in AXERA-TECH/YOLOv8-Seg, including yolov8s-seg-cut.onnx.

  • 1 ONNX models (.onnx files)
  • 16 files, including 3 .axmodel, 3 .jpg, 2 .json, 2 .py, 1 .md, 1 .onnx
  • Last updated 2025-11-26

ONNX files

File Size Download
yolov8s-seg-cut.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

YOLOv8-Seg

This version of YOLOv8-Seg has been converted to run on the Axera NPU using w8a16 quantization.

This model has been optimized with the following LoRA:

Compatible with Pulsar2 version: 3.4

Convert tools links:

For those who are interested in model conversion, you can try to export axmodel through

Support Platform

Chips yolov8s-seg
AX650 4.6 ms
AX630C TBD ms

How to use

Download all files from this repository to the device


root@ax650:~/YOLOv8-Seg# tree
.
|-- ax650
|   `-- yolov8s-seg.axmodel
|-- ax_yolov8_seg
|-- football.jpg
`-- yolov8_seg_out.jpg

Inference

Input image:

Inference with AX650 Host, such as M4N-Dock(爱芯派Pro)
root@ax650:~/samples/AXERA-TECH/YOLOv8-Seg# ./ax_yolov8_seg -m ax650/yolov8s_seg.axmodel -i football.jpg
--------------------------------------
model file : ax650/yolov8s_seg.axmodel
image file : football.jpg
img_h, img_w : 640 640
--------------------------------------
Engine creating handle is done.
Engine creating context is done.
Engine get io info is done.
Engine alloc io is done.
Engine push input is done.
--------------------------------------

input size: 1
    name:   images [UINT8] [BGR]
        1 x 640 x 640 x 3

output size: 7
    name: /model.22/Concat_1_output_0 [FLOAT32]
        1 x 80 x 80 x 144

    name: /model.22/Concat_2_output_0 [FLOAT32]
        1 x 40 x 40 x 144

    name: /model.22/Concat_3_output_0 [FLOAT32]
        1 x 20 x 20 x 144

    name: /model.22/cv4.0/cv4.0.2/Conv_output_0 [FLOAT32]
        1 x 80 x 80 x 32

    name: /model.22/cv4.1/cv4.1.2/Conv_output_0 [FLOAT32]
        1 x 40 x 40 x 32

    name: /model.22/cv4.2/cv4.2.2/Conv_output_0 [FLOAT32]
        1 x 20 x 20 x 32

    name:  output1 [FLOAT32]
        1 x 32 x 160 x 160

post process cost time:16.21 ms
--------------------------------------
Repeat 1 times, avg time 4.69 ms, max_time 4.69 ms, min_time 4.69 ms
--------------------------------------
detection num: 8
 0:  92%, [1354,  340, 1629, 1035], person
 0:  91%, [   5,  359,  314, 1108], person
 0:  91%, [ 759,  220, 1121, 1153], person
 0:  88%, [ 490,  476,  661,  999], person
32:  73%, [1233,  877, 1286,  923], sports ball
32:  63%, [ 772,  888,  828,  937], sports ball
32:  63%, [ 450,  882,  475,  902], sports ball
 0:  55%, [1838,  690, 1907,  811], person
--------------------------------------

Output image:

Inference with M.2 Accelerator card
(base) axera@raspberrypi:~/lhj/YOLOv8-Seg $ ./axcl_aarch64/axcl_yolov8_seg -m ax650/yolov8s_seg.axmodel -i football.jpg 
--------------------------------------
model file : ax650/yolov8s_seg.axmodel
image file : football.jpg
img_h, img_w : 640 640
--------------------------------------
axclrtEngineCreateContextt is done. 
axclrtEngineGetIOInfo is done. 

grpid: 0

input size: 1
    name:   images 
        1 x 640 x 640 x 3

output size: 7
    name: /model.22/Concat_1_output_0 
        1 x 80 x 80 x 144

    name: /model.22/Concat_2_output_0 
        1 x 40 x 40 x 144

    name: /model.22/Concat_3_output_0 
        1 x 20 x 20 x 144

    name: /model.22/cv4.0/cv4.0.2/Conv_output_0 
        1 x 80 x 80 x 32

    name: /model.22/cv4.1/cv4.1.2/Conv_output_0 
        1 x 40 x 40 x 32

    name: /model.22/cv4.2/cv4.2.2/Conv_output_0 
        1 x 20 x 20 x 32

    name:  output1 
        1 x 32 x 160 x 160

==================================================

Engine push input is done. 
--------------------------------------
post process cost time:3.67 ms 
--------------------------------------
Repeat 1 times, avg time 4.85 ms, max_time 4.85 ms, min_time 4.85 ms
--------------------------------------
detection num: 8
 0:  92%, [1354,  340, 1629, 1035], person
 0:  91%, [   5,  359,  314, 1108], person
 0:  91%, [ 759,  220, 1121, 1153], person
 0:  88%, [ 490,  476,  661,  999], person
32:  73%, [1233,  877, 1286,  923], sports ball
32:  63%, [ 772,  888,  828,  937], sports ball
32:  63%, [ 450,  882,  475,  902], sports ball
 0:  55%, [1838,  690, 1907,  811], person
--------------------------------------

Output image:

Model info

onnx Ultralytics YOLOv8 YOLOv8-Seg object-detection en base_model:Ultralytics/YOLOv8 base_model:quantized:Ultralytics/YOLOv8 license:mit region:us
↓ 6 ♥ 0

Created: 2025-01-11

Updated: 2025-11-26

View on Hugging Face

Files (16)

.gitattributes
README.md
ax620e/yolov8s_seg.axmodel
ax637/compiled.axmodel
ax650/yolov8s_seg.axmodel
ax_yolov8_seg
axcl_aarch64/axcl_yolov8_seg
axcl_x86_64/axcl_yolov8_seg
config.json
cut-onnx.py
football.jpg
yolov8-seg-test.py
yolov8_seg_axcl_out.jpg
yolov8_seg_config.json
yolov8_seg_out.jpg
yolov8s-seg-cut.onnx ONNX

Related models