File size: 5,187 Bytes
899a81e 98e4e1b 0a50691 98e4e1b 899a81e 98e4e1b 899a81e 1321e59 899a81e 98e4e1b 1321e59 899a81e 98e4e1b 899a81e 98e4e1b 1321e59 0df9eb1 1321e59 0df9eb1 1321e59 0df9eb1 1321e59 98e4e1b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
---
license: mit
language:
- en
base_model:
- Ultralytics/YOLO11
pipeline_tag: object-detection
tags:
- Ultralytics
- YOLOv8
- YOLO11
---
# libdet.axera
## References links:
- [The github repo of libdet's open source](https://github.com/AXERA-TECH/libdet.axera)
## Get Model
- [YOLOv8](https://huggingface.co/AXERA-TECH/YOLOv8)
- [YOLO11](https://huggingface.co/AXERA-TECH/YOLO11)
- [YOLO11 Pose](https://huggingface.co/AXERA-TECH/YOLO11-Pose)
## Usage Example
### YOLOv8
```shell
./test_det -m yolov8s.axmodel -t 1 -i pexels-володимир-король-16499013.jpg
open libax_sys.so failed
open libax_engine.so failed
[I][ run][ 31]: AXCLWorker start with devid 0
[I][ init][ 75]: model_type: 1, threshold: 0.25, nms_threshold: 0.45, num_classes: 80, num_kpt: 0
[I][ init][ 93]: mean: 0.00, 0.00, 0.00
[I][ init][ 94]: std: 0.00, 0.00, 0.00
input size: 1
name: images [unknown] [unknown]
1 x 640 x 640 x 3
output size: 3
name: /model.22/Concat_output_0
1 x 80 x 80 x 144
name: /model.22/Concat_1_output_0
1 x 40 x 40 x 144
name: /model.22/Concat_2_output_0
1 x 20 x 20 x 144
[I][ init][ 164]: input_w: 640, input_h: 640, is_input_nchw: false
[I][ init][ 172]: nElements: 1228800, m_runner->get_input(0).nSize: 1228800, is_input_fp32: false
num_objs: 8
[I][ run][ 81]: AXCLWorker exit with devid 0
```

### YOLO11 Pose
```shell
./test_det -m yolo11x-pose.axmodel -t 4 -i pexels-володимир-король-16499013.jpg --num_kpt 17
open libax_sys.so failed
open libax_engine.so failed
[I][ run][ 31]: AXCLWorker start with devid 0
[I][ init][ 75]: model_type: 4, threshold: 0.25, nms_threshold: 0.45, num_classes: 80, num_kpt: 17
[I][ init][ 93]: mean: 0.00, 0.00, 0.00
[I][ init][ 94]: std: 0.00, 0.00, 0.00
input size: 1
name: images [unknown] [unknown]
1 x 640 x 640 x 3
output size: 6
name: /model.23/Concat_1_output_0
1 x 80 x 80 x 65
name: /model.23/Concat_2_output_0
1 x 40 x 40 x 65
name: /model.23/Concat_3_output_0
1 x 20 x 20 x 65
name: /model.23/cv4.0/cv4.0.2/Conv_output_0
1 x 80 x 80 x 51
name: /model.23/cv4.1/cv4.1.2/Conv_output_0
1 x 40 x 40 x 51
name: /model.23/cv4.2/cv4.2.2/Conv_output_0
1 x 20 x 20 x 51
[I][ init][ 164]: input_w: 640, input_h: 640, is_input_nchw: false
[I][ init][ 172]: nElements: 1228800, m_runner->get_input(0).nSize: 1228800, is_input_fp32: false
num_objs: 6
[I][ run][ 81]: AXCLWorker exit with devid 0
```

### Gradio Usage Example
```shell
python lib/gradio_example.py --model yolo11x.axmodel --model_type 3
```
```shell
(axcl) radxa@radxa-cubie-a7a:~/AXERA-TECH/libdet.axera$ python lib/gradio_example.py --model yolo11x.axmodel --model_type 3
Trying to load: /home/axera/libdet.axera/build/libdet.so
❌ Failed to load: /home/axera/libdet.axera/build/libdet.so
/home/axera/libdet.axera/build/libdet.so: cannot open shared object file: No such file or directory
🔍 File not found. Please verify that libdet.so exists and the path is correct.
Trying to load: /home/radxa/AXERA-TECH/libdet.axera/lib/aarch64/libdet.so
open libax_sys.so failed
open libax_engine.so failed
✅ Successfully loaded: /home/radxa/AXERA-TECH/libdet.axera/lib/aarch64/libdet.so
可用设备: {'host': {'available': False, 'version': '',
'mem_info': {'remain': 0, 'total': 0}},
'devices': {'host_version': 'V3.6.4_20250819020149',
'dev_version': 'V3.6.4_20250819020149',
'count': 1,
'devices_info': [{'temp': 45, 'cpu_usage': 1, 'npu_usage': 0, 'mem_info': {'remain': 7022, 'total': 7040}}]}}
axcl device available, use device-0
[I][ run][ 31]: AXCLWorker start with devid 0
[I][ init][ 75]: model_type: 3, threshold: 0.25, nms_threshold: 0.45, num_classes: 80, num_kpt: 0
[I][ init][ 81]: mean: 0.00, 0.00, 0.00
[I][ init][ 82]: std: 1.00, 1.00, 1.00
input size: 1
name: images [unknown] [unknown]
1 x 640 x 640 x 3
output size: 3
name: /model.23/Concat_output_0
1 x 80 x 80 x 144
name: /model.23/Concat_1_output_0
1 x 40 x 40 x 144
name: /model.23/Concat_2_output_0
1 x 20 x 20 x 144
[I][init][ 152]: input_w: 640, input_h: 640, is_input_nchw: false
[I][init][ 160]: nElements: 1228800, m_runner->get_input(0).nSize: 1228800, is_input_fp32: false
* Running on local URL: http://xxx.xxx.xxx.xxx:7860
* Running on local URL: http://0.0.0.0:7860
* To create a public link, set `share=True` in `launch()`.
```
Access `http://xxx.xxx.xxx.xxx:7860` using Chrome or another browser.

## Community
QQ 群: 139953715
|