Views
No views yet
image_classification_ppresnet50_2022jan_int8bq.onnx represents the block-quantized version in int8 precision and is generated using block_quantize.py with block_size=64.| Models | Top-1 Accuracy | Top-5 Accuracy |
|---|---|---|
| PP-ResNet | 82.28 | 96.15 |
| PP-ResNet block | 82.27 | 96.15 |
| PP-ResNet quant | 0.22 | 0.96 |
1python demo.py --input /path/to/image
2
3# get help regarding various parameters
4python demo.py --help1# A typical and default installation path of OpenCV is /usr/local
2cmake -B build -D OPENCV_INSTALLATION_PATH=/path/to/opencv/installation .
3cmake --build build
4
5# detect on an image
6./build/opencv_zoo_image_classification_ppresnet -i=/path/to/image
7
8# detect on an image and display top N classes
9./build/opencv_zoo_image_classification_ppresnet -i=/path/to/image -k=N
10
11# get help messages
12./build/opencv_zoo_image_classification_ppresnet -h