CoolFace
Modelpublic

AXERA-TECH/YOLOv8-Pose

sourceHugging Facemitupdated 2mo agoView on Hugging Face
1likes233downloads
Model Card

YOLOv8-POSE

This version of YOLOv8-POSE 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: 5.0

Convert tools links:

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

Support Platform

Performance Statistics

AX650N
ModelLatency(ms) npu1Latency(ms) npu3
yolov8n-pose4.1351.453
yolov8s-pose10.8423.764
yolov8m-pose27.5159.577
yolov8l-pose52.56018.221
yolov8x-pose90.25729.313
AX630C
ModelLatency(ms) npu1Latency(ms) npu2
yolov8n-pose14.7388.213
yolov8s-pose33.15724.109
yolov8m-pose82.26757.532
yolov8l-pose145.686101.811
yolov8x-pose248.331160.857
AX615
ModelLatency(ms) npu1Latency(ms) npu2
yolov8n-pose17.40210.083
yolov8s-pose50.24028.091
yolov8m-pose136.38670.737
AX637
ModelLatency(ms) npu1
yolov8n-pose4.838
yolov8s-pose12.250
yolov8m-pose28.938
yolov8l-pose55.146
yolov8x-pose86.095

How to use

Download all files from this repository to the device

Inference

Input image: [image]

Inference with AX650 Host, such as M4N-Dock(爱芯派Pro)
(base) root@ax650:~/ax650pose# python3 ax_infer.py --model-path yolov8s-pose_640x640_npu3.axmodel --test-img bus.jpg
[INFO] Using provider: AxEngineExecutionProvider
[INFO] Chip type: ChipType.MC50
[INFO] VNPU type: VNPUType.DISABLED
[INFO] Engine version: 2.12.0s
[INFO] Model type: 2 (triple core)
[INFO] Compiler version: 6.0 a498e20d
[YOLOv8-Pose] [15:35:43.230] [DEBUG] Load model time = 576.32 ms
[YOLOv8-Pose] [15:35:43.301] [DEBUG] Pre-process time = 21.58 ms
[YOLOv8-Pose] [15:35:43.328] [DEBUG] Forward time = 26.25 ms
[YOLOv8-Pose] [15:35:43.335] [DEBUG] Post-process time = 6.46 ms
[YOLOv8-Pose] [15:35:43.341] [INFO] Draw Results (4 persons):
[YOLOv8-Pose] [15:35:43.342] [INFO] (222, 404, 344, 859) -> person: 0.89
[YOLOv8-Pose] [15:35:43.347] [INFO] (49, 397, 244, 902) -> person: 0.88
[YOLOv8-Pose] [15:35:43.348] [INFO] (669, 392, 808, 875) -> person: 0.87
[YOLOv8-Pose] [15:35:43.349] [INFO] (0, 413, 78, 935) -> person: 0.57
[YOLOv8-Pose] [15:35:43.377] [INFO] Saved to result_yolov8_pose.jpg

Output image: [image]