File size: 1,210 Bytes
da55708 | 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 | ## Model Information
### Source model
- Input shape: 1x3x640x640
- Number of parameters: 2.47M
- Model size: 9.39M
- Output shape: 1x300x6
Source model repository: [yolo26n](https://docs.ultralytics.com/models/yolo26/)
## Inference with AidLite SDK
### SDK installation
Model Farm uses AidLite SDK as the model inference SDK. For details, please refer to the [AidLite Developer Documentation](https://docs.aidlux.com/software/ai-sdk/aidlite_guide)
- install AidLite SDK
```bash
# Install the appropriate version of the aidlite sdk
sudo aid-pkg update
sudo aid-pkg install aidlite-sdk
# Download the qnn version that matches the above backend. Eg Install QNN2.23 Aidlite: sudo aid-pkg install aidlite-qnn223
sudo aid-pkg install aidlite-{QNN VERSION}
```
- Verify AidLite SDK
```bash
# aidlite sdk c++ check
python3 -c "import aidlite ; print(aidlite.get_library_version())"
# aidlite sdk python check
python3 -c "import aidlite ; print(aidlite.get_py_library_version())"
```
### Run Demo
#### python
```bash
# pip install ultralytics==8.4.2
cd model_farm_yolo26n_qcs6490_qnn2.36_int8_aidlite
python3 python/run_test.py --target_model [model_file_path] --imgs ./python/bus.jpg --invoke_nums 10
```
|