Multi-labels anime image classification without python.
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();
- Clone with models
# https
git clone --recursive https://github.com/libwaifu/deep-danbooru.git
# git
git clone --recursive [email protected]:libwaifu/deep-danbooru.git
or download manually: deep-danbooru/models
- Pull latest models
git pull && git submodule update --remote