Model Information
Source model
- Input shape: 1x3x640x640
- Number of parameters: 2.47M
- Model size: 9.39M
- Output shape: 1x300x6
Source model repository: yolo26n
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
- install AidLite SDK
# 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
# 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
# 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