Skip to content

⭐ Some useful advice that may help you ⭐ #274

Open
@zen-xingle

Description

RKNN-Toolkit:

  1. 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.

  2. For yolov5,yolov7,yolox, please refer here : https://github.com/airockchip/rknn_model_zoo/tree/main/models/CV/object_detection/yolo

  3. For loading already quantized model, refer here: https://github.com/rockchip-linux/rknn-toolkit/tree/master/examples/common_function_demos/load_quantized_model

  4. 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

  5. Quantization RKNN model drop accuracy, please refer here: https://github.com/rockchip-linux/rknn-toolkit/tree/master/examples/common_function_demos/accuracy_analysis

  6. 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

  7. 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

  8. 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"

  9. 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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions