Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search


< Rock3‎ | dev
    ROCK 3 >  Development >  RKNN Toolkit with PC


This page describes how to inference on ROCK 3 connected with a PC. You may need to read rock3/dev/npu-run-test first.

Setup steps

Step 1: Install rockchip-adbd

 $ sudo apt-get install rockchip-adbd --upgrade

Step 2: Update rknn runtime

Follow rknn_server_proxy for updates the rknn runtime

Step 3: Run rknn_server_proxy


Step 4: Run rknn-toolkit2 demo

Clone or download the rknn-toolkit2 from rknn-toolkit2 to your PC. Connecting the board to the PC.

 $ cd rknn-toolkit2/packages
 $ pip3 install rknn_toolkit2-1.4.0_22dcfef4-cp36-cp36m-linux_x86_64.whl   # or rknn_toolkit2-1.4.0_22dcfef4-cp38-cp38-linux_x86_64.whl
 $ cd ../examples/pytorch/resnet18
 $ nano  # modify target_platform of rknn.config, and target of rknn.init_runtime
 $ python3