Description
RKNN-Toolkit:
-
Is there a simple Capi demo that works on my model?
Yeah. Please try this https://github.com/airockchip/rknn_model_zoo/tree/main/common/rknn_converter. -
For yolov5,yolov7,yolox, please refer here : https://github.com/airockchip/rknn_model_zoo/tree/main/models/CV/object_detection/yolo
-
For loading already quantized model, refer here: https://github.com/rockchip-linux/rknn-toolkit/tree/master/examples/common_function_demos/load_quantized_model
-
For how to export a .pt model(torchscript format), refer here: https://github.com/rockchip-linux/rknn-toolkit/blob/master/examples/pytorch/resnet18/test.py
-
Quantization RKNN model drop accuracy, please refer here: https://github.com/rockchip-linux/rknn-toolkit/tree/master/examples/common_function_demos/accuracy_analysis
-
Model got error when setting rknn.build(precompile=True)? Please try this way: https://github.com/rockchip-linux/rknn-toolkit/tree/master/examples/common_function_demos/export_rknn_precompile_model
-
Want to using Python api on board (such as rk1808/rv1126/rv1109/rk3399pro)? Using PC(x86) to generate RKNN model, and the using RKNN-Toolkit-lite for deplotment. https://github.com/rockchip-linux/rknn-toolkit/tree/master/rknn-toolkit-lite/packages
-
Pytorch version higher than RKNN-Toolkit requires? There are two way to do this:
First way: Install RKNN-Toolkit first. Then "pip uninstall torch". Then "pip install torch==1.10.0"
Second way: Install Pytorch first like "pip install torch==1.10.0". Then "pip install rknn-toolkit.whl --no-deps" -
Other format data instead of image(lile jpg/png etc.)? The npy format is also accept for quantize model. NOTICE! If your npy data is 4D, then the layerout of the data should be "nhwc"! If dims not equal to 4D, then the raw data is ok.
Please tell us if anything confuse you.