Skip to content

Rust implementation of the Nanodet decoder

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

lit-robotics/nanodet-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nanodet-rs

Rust implementation of the nanodet decoder.

Supports multiple neural network backends via AsFeatureMatrix trait. Implementations are provided for the following backends:

  • ncnn-rs - Works on most CPUs and has experimental Vulkan GPU support.
  • openvino-rs - A very fast framework that utilises Intel integrated CPU graphics.

Usage

Can be used as library by including in Cargo.toml:

nanodet-rs = { git = "https://github.com/lit-robotics/nanodet-rs" }

For rust-flavored usage see examples/ncnn_image.rs, or if you like opencv check examples/ncnn_opencv.rs

Cargo Features

Running examples

ncnn

Run pretrained COCO model on an image with rust image pipeline:

cargo run --example ncnn_image --release --features ncnn,image -- data/coco_test.jpg

Run pretrained COCO model on an image with opencv image pipeline:

cargo run --example ncnn_opencv --release --features ncnn,opencv -- data/coco_test.jpg

openvino

Run pretrained COCO model on an image with opencv image pipeline:

# Initialize openvino environment (check openvino docs)
source /opt/intel/openvino_2022/setupvars.sh
# Run example
cargo run --example openvino_opencv --release --features openvino,opencv -- data/coco_test.jpg

About

Rust implementation of the Nanodet decoder

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages