#image-generation #ai #model

rwuerstchen

A simple interface for RWuerstchen image generation models models

5 unstable releases

0.3.2 Aug 14, 2024
0.3.0 Aug 13, 2024
0.2.1 Feb 28, 2024
0.2.0 Feb 18, 2024
0.1.0 Dec 16, 2023

#772 in Images

Download history 9/week @ 2024-06-10 3/week @ 2024-06-17 19/week @ 2024-06-24 7/week @ 2024-07-08 13/week @ 2024-07-15 13/week @ 2024-07-29 6/week @ 2024-08-05 258/week @ 2024-08-12 7/week @ 2024-08-19 12/week @ 2024-08-26 1/week @ 2024-09-02 6/week @ 2024-09-09 172/week @ 2024-09-16 136/week @ 2024-09-23

319 downloads per month
Used in 2 crates (via kalosm-vision)

MIT/Apache

180KB
4K SLoC

RWuerstchen

RWuerstchen is a rust wrapper for library for Wuerstchen implemented in the Candle ML framework.

RWuerstchen generates images efficiently from text prompts.

Usage

use futures_util::StreamExt;
use rwuerstchen::*;
#[tokio::main]
async fn main() -> Result<(), anyhow::Error> {
    let model = Wuerstchen::builder().build().await?;
    let settings = WuerstchenInferenceSettings::new(
        "a cute cat with a hat in a room covered with fur with incredible detail",
    );
    if let Ok(mut images) = model.run(settings) {
        while let Some(image) = images.next().await {
            if let Some(buf) = image.generated_image() {
                buf.save(&format!("{}.png",image.sample_num()))?;
            }
        }
    }
    Ok(())
}

Dependencies

~34–55MB
~1M SLoC