deep-danbooru

Crates.iodeep-danbooru
lib.rsdeep-danbooru
version0.0.0
sourcesrc
created_at2023-03-10 09:41:15.432825
updated_at2023-03-10 09:41:15.432825
descriptionMulti-labels anime image classification in rust
homepage
repositoryhttps://github.com/libwaifu/deep-danbooru
max_upload_size
id806315
size386,626
SasakiSaki (oovm)

documentation

https://docs.rs/deep-danbooru

README

Deep Danbooru in rust

Multi-labels anime image classification without python.

Fast usage

# let model_path = projects.join("deep-danbooru-models/models/deepdanbooru-2021.onnx");
# let image_path = projects.join("deep-danbooru-models/tests/pixel-105715609.jpg");
predict_by_danbooru2021(&model_path, &image_path)

Full usage

let runtime = Arc::new(Environment::builder().build()?);
let mut model = DeepDanbooru::new(&runtime, model.as_ref())?;
model.set_tags(TAGS2021);
let image = Reader::open(image.as_ref()).unwrap().decode().unwrap();
let result = model.predict(&image).unwrap();
Commit count: 12

cargo fmt