Skip to content

AndrewJNg/NPU-on-rk3588

Repository files navigation

openpilot-on-rk3588

Written by AndrewJNg for Kommu next-gen hardware

for rknn-toolkit2 V1.6.0

System setup

[https://github.com/airockchip/rknn-toolkit2/tree/master]

Ubuntu PC (ubuntu 20.04)

  1. git clone https://github.com/airockchip/rknn-toolkit2/tree/master
  2. cd rknn-toolkit2/rknn-toolkit2/packages/
  3. pip3 install rknn_toolkit2-1.6.0+81f21f4d-cp38-cp38-linux_x86_64.whl (python 3.8 for this example)
  4. Run in python terminal (library test, successful when no errors are returned)
    • from rknnlite.api import RKNNLite
  1. git clone https://github.com/airockchip/rknn-toolkit2/tree/master
  2. cd rknn-toolkit2/rknn_toolkit_lite2/packages/
  3. pip3 install rknn_toolkit_lite2-1.6.0-cp310-cp310-linux_aarch64.whl (python 3.10 for this example)
  4. Run in python terminal (library test, successful when no errors are returned)
    • from rknnlite.api import RKNNLite

Running the conversion on Ubuntu PC (python)

Running dmonitoring as example

  1. cd dmonitoring_python
  2. sudo python convert_dmonitoring.py

Running the NPU on Orange Pi (python)

Running dmonitoring as example

  1. cd dmonitoring_python
  2. sudo python run_dmonitoring.py

troubleshoot

When the library test returns an error, it means that the library version is mismatch

Code to transfer to Openpilot

In the openpilot folde, there is a folder called openpilot.py which is the modified version of the openpilot model runner you can transfer over to the openpilot version, and add in support for RKNN (this is already done in the development fork of openpilot for Kommu)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published