Files
go-rknnlite/CHANGES.md
2025-06-21 15:34:30 +12:00

2.0 KiB

go-rknnlite Changes

General Changes

See the commit log for general changes.

Breaking Changes

Some notes on breaking changes.

June 21, 2025

PR #41

Created the SAHI preprocessor. This required moving the postprocess/detect.go file into its own package at postprocess/result/detect.go to avoid a cyclic import. The postprocess.NewIDGenerator() also needed to be shifted to the result package.

These changes only effect the internal's of the API code, so there will be no breaking changes if your usage follows those provided in the examples.

However if you are doing something custom outside of the code examples then these changes could result in code breakage and would require the following updates.

Previous API naming New API naming
postprocess.NewIDGenerator() result.NewIDGenerator()
postprocess.DetectionResult result.DetectionResult
postprocess.BoxRectMode result.BoxRectMode
postprocess.BoxRect result.BoxRect
postprocess.DetectResult result.DetectResult
postprocess.KeyPoint result.KeyPoint

Apr 2, 2025

PR #31

Changed rknnlite.NewPool() function to require passing of NPU CoreMask list. This was done to support other Rockchip RK35xx models that feature either single or dual NPU cores.

The original code assumed usage of RK3588 with three NPU cores by creating a Pool as follows

pool, err := rknnlite.NewPool(*poolSize, *modelFile)

Update any existing code by passing in RK3588's NPU core list.

pool, err := rknnlite.NewPool(*poolSize, *modelFile, rknnlite.RK3588)

For other Rockchip models you can make use of the convenience variables or pass in your own CoreMask list.

5b10c18107/runtime.go (L33-L43)