Compatible with Pulsar2 version: 5.1.
For those who are interested in model conversion, you can try to export axmodel through:
Download all files from this repository to the device.
1wget https://github.com/AXERA-TECH/pyaxengine/releases/download/0.1.3.rc2/axengine-0.1.3-py3-none-any.whl
2pip install axengine-0.1.3-py3-none-any.whl
1root@ax650:~/yolo26_obb# python3 ax_infer.py --model_path yolo26l-obb_npu3.axmodel --test_img boats.jpg
2[INFO] Available providers: ['AxEngineExecutionProvider', 'AXCLRTExecutionProvider']
3usage: ax_infer.py [-h] [--model-path MODEL_PATH] [--test-img TEST_IMG] [--img-save-path IMG_SAVE_PATH]
4 [--score-thres SCORE_THRES] [--nms-thres NMS_THRES] [--num-classes NUM_CLASSES]
5 [--providers PROVIDERS]
6ax_infer.py: error: unrecognized arguments: --model_path yolo26l-obb_npu3.axmodel --test_img boats.jpg
7root@ax650:~/yolo26_obb# python3 ax_infer.py --model-path yolo26l-obb_npu3.axmodel --test-img boats.jpg
8[INFO] Available providers: ['AxEngineExecutionProvider', 'AXCLRTExecutionProvider']
9[INFO] Using provider: AxEngineExecutionProvider
10[INFO] Chip type: ChipType.MC50
11[INFO] VNPU type: VNPUType.DISABLED
12[INFO] Engine version: 2.12.0s
13[INFO] Model type: 2 (triple core)
14[INFO] Compiler version: 5.2-dirty a6f1799a-dirty
15[YOLO26-OBB] [13:21:27.889] [DEBUG] Load model time = 485.62 ms
16[YOLO26-OBB] [13:21:27.934] [DEBUG] Pre-process time = 13.80 ms
17[YOLO26-OBB] [13:21:27.990] [DEBUG] Forward time = 55.92 ms
18[YOLO26-OBB] [13:21:28.004] [DEBUG] Post-process time = 12.79 ms
19[YOLO26-OBB] [13:21:28.034] [INFO] Draw Results (182 oriented objects):
20[YOLO26-OBB] [13:21:28.035] [INFO] ship conf=0.90 cx=770.3 cy=183.5 w=103.2 h=31.2 theta=+23.6deg
21...
22[YOLO26-OBB] [13:21:28.144] [INFO] ship conf=0.25 cx=484.9 cy=5.2 w=26.2 h=15.6 theta=+13.1deg
23[YOLO26-OBB] [13:21:28.145] [INFO] ship conf=0.25 cx=1770.5 cy=660.5 w=105.5 h=35.2 theta=+23.6deg
24[YOLO26-OBB] [13:21:28.189] [INFO] Saved to result_yolo26_obb.jpg