-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
⭐ Some useful advice that may help you ⭐ #274
Comments
RKNPU(Capi)
|
About rknn.init_runtime with devices connected
Then restart the rknn server
Then try to init_runtime with your model again. The error reason is supposed to be printed on the serial port terminal.
|
This was helpful thank you, do you have any advice or insight on a way to use this with python 3.9 (trying to avoid using venvs)? Haven't tried just using it so perhaps it will work as with previous versions |
Sorry, at this time only python 3.6/3.8 is supported. |
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.
The text was updated successfully, but these errors were encountered: