Where is source code for rknn-toolkit2?

I mean they have their repo https://github.com/rockchip-linux/rknn-toolkit2
where you can download their compiled wheel packages for ubuntu (https://github.com/rockchip-linux/rknn-toolkit2/blob/master/packages/rknn_toolkit2-1.4.0_22dcfef4-cp36-cp36m-linux_x86_64.whl) as well as for rknn_toolkit_lite2 , but where is the source code to compile it yourself โ€ฆ or is it closed source??

I am looking exactly for source code of their rknn-toolkit2 , in other word source code of the rknn_toolkit2.whl package

as well as their runtime library - rknn.so

@JonGroff no its not
just pre-built whl packages and example files without source code of their rknn libraries!

ok so this example


from rknn.api import RKNN

i.e importing their RKNN library

I am asking where is the source code of that library?

github repo rknn-toolkit2 contains just prebuilt python libraries and examples

thats what i am asking for, so why is it closed source? as far as I have seen โ€“ everything for rockchip rk3588 is released as opensource, and this is their only closed source part โ€“ why?

so than they are same EVIL as NVIDIA with their CUDA.

Yes i am successfully using their python binding (rknn-toolkit-lite2) for inference of our models.

But i am doing proof-of-concept for our next generation of product, which should have long therm support (5+ years). And rn. we have switched from nvidia jetson platform because of their closed source approach to everything.
So i hit the wall with rockchip as well, and when they decide to give up on it in 1 year, oh well โ€“ we are doomed :frowning: source code would def. help to troubleshoot it on own if that happens, or to give it a community โ€“ to take care

Thank you very much for your response, appreciate it tho.

Iโ€™ll ask radxa guys on discord forum, if they have anything to say โ€ฆ

1 Like

Hi I am also looking for the source code to build rknn-toolkit2 on my own SBC aarch64, the wheels are only for ubuntu. The toolkit-lite I have installed and run only has limited features. I want to try and run YOLOV5 and YOLOV8 on the R3588S board in Orange PI 5. Is there pre-built wheels for rknn-toolkit available anywhere for aarch64?

hey, rknn-toolkit2 is only for PC (x64) and its purpose is to convert your model (from onnx,pytorch,tensorfow,tflite) to RKNN format. rknn-toolkit2 is not for inference.

to run model on arm64 you must use rknn-toolkit-lite-2 which is for RUNNING (inference) on your SBC.

All is here โ€” https://github.com/rockchip-linux/rknn-toolkit2

As to source code โ€“ unfortunatelly โ€“ it is closed source. hope guys from rockchip will consider opensourcing it in future

1 Like

Hey yes, I implemented the sample in the rknn-toolit2 github. I managed to run their sample yolov5 through the toolkit-lite-2 framework. I want to now try and run on my own custom models, but the toolkit is using older versions of every library, so that seems to be challenging to keep the code compatible with the other libraries like yolo which are moving at a way higher pace.

yes, i am struggling with it as well, i hope guys from rockchip will release newer version.