Rust bindings to https://github.com/leejet/stable-diffusion.cpp
| Windows | Mac | Linux | |
|---|---|---|---|
| vulkan | ❌ | ⛓️💥 | ✅️ |
| metal | - | ✅️ | - |
| cuda | ❌ | - | ✅️ |
| rocm | ❌ | - | ⛓️💥 |
| sycl | ❌ | - | ✅️ |
✅️: Working
❌: See this cargo issue
⛓️💥 : Issues when linking libraries
use diffusion_rs::{api::gen_img, preset::{Preset,PresetBuilder}};
let (mut config, mut model_config) = PresetBuilder::default()
.preset(Preset::SDXLTurbo1_0Fp16)
.prompt("a lovely duck drinking water from a bottle")
.build()
.unwrap();
gen_img(config, model_config).unwrap();- Something other than Windows/Linux isn't working!
- I don't have a way to test these platforms, so I can't really help you.
- If you can fix the issue, please open a PR!
Ensure that the underline cpp library compiles on supported platformsBuild an easy to use library with model presetsAutomatic library publishing on crates.io by gh actions- Maybe prebuilt CLI app binaries