Delete model_farm_resnet101_qcs6490_qnn2.31_w8a16_aidlite
Browse files
model_farm_resnet101_qcs6490_qnn2.31_w8a16_aidlite/model_farm_resnet101_qcs6490_qnn2.31_w8a16_aidlite/README.md
DELETED
|
@@ -1,58 +0,0 @@
|
|
| 1 |
-
## Model Information
|
| 2 |
-
|
| 3 |
-
### Source model
|
| 4 |
-
- Input shape: 224x224
|
| 5 |
-
- Number of parameters: 42.49M
|
| 6 |
-
- Model size: 169.79M
|
| 7 |
-
- Output shape: 1x1000
|
| 8 |
-
|
| 9 |
-
Source model repository: [resnet](https://github.com/pytorch/vision/blob/main/torchvision/models/resnet.py)
|
| 10 |
-
|
| 11 |
-
### Converted model
|
| 12 |
-
|
| 13 |
-
- Precision: W8A16
|
| 14 |
-
- Backend: QNN2.31
|
| 15 |
-
- Target Device: FV01 QCS6490
|
| 16 |
-
|
| 17 |
-
## Inference with AidLite SDK
|
| 18 |
-
|
| 19 |
-
### SDK installation
|
| 20 |
-
Model Farm uses AidLite SDK as the model inference SDK. For details, please refer to the [AidLite Developer Documentation](https://v2.docs.aidlux.com/en/sdk-api/aidlite-sdk/)
|
| 21 |
-
|
| 22 |
-
- Install AidLite SDK
|
| 23 |
-
|
| 24 |
-
```bash
|
| 25 |
-
# Install the appropriate version of the aidlite sdk
|
| 26 |
-
sudo aid-pkg update
|
| 27 |
-
sudo aid-pkg install aidlite-sdk
|
| 28 |
-
# Download the qnn version that matches the above backend. Eg Install QNN2.23 Aidlite: sudo aid-pkg install aidlite-qnn223
|
| 29 |
-
sudo aid-pkg install aidlite-{QNN VERSION}
|
| 30 |
-
```
|
| 31 |
-
|
| 32 |
-
- Verify AidLite SDK
|
| 33 |
-
|
| 34 |
-
```bash
|
| 35 |
-
# aidlite sdk c++ check
|
| 36 |
-
python3 -c "import aidlite ; print(aidlite.get_library_version())"
|
| 37 |
-
|
| 38 |
-
# aidlite sdk python check
|
| 39 |
-
python3 -c "import aidlite ; print(aidlite.get_py_library_version())"
|
| 40 |
-
|
| 41 |
-
sudo aid-pkg install aidlite-qnn231
|
| 42 |
-
```
|
| 43 |
-
|
| 44 |
-
### Run Demo
|
| 45 |
-
#### python
|
| 46 |
-
```bash
|
| 47 |
-
cd model_farm_resnet101_qcs6490_qnn2.31_w8a16_aidlite
|
| 48 |
-
python3 python/run_test.py --target_model ./models/resnet101_w8a16.qnn231.ctx.bin --imgs ./python/tiger_cat.jpg --invoke_nums 10
|
| 49 |
-
```
|
| 50 |
-
|
| 51 |
-
#### c++
|
| 52 |
-
```bash
|
| 53 |
-
cd resnet101/model_farm_resnet101_qcs6490_qnn2.31_w8a16_aidlite/cpp
|
| 54 |
-
mkdir build && cd build
|
| 55 |
-
cmake ..
|
| 56 |
-
make
|
| 57 |
-
./run_test
|
| 58 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|