lmz / rust-stable-diffusion-v2-1

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: May 23 2023
text-to-image

Introduction of rust-stable-diffusion-v2-1

Model Details of rust-stable-diffusion-v2-1

This repository hosts weights for a Rust based version of Stable Diffusion. These weights have been directly adapted from the stabilityai/stable-diffusion-2-1 weights, they can be used with the diffusers-rs crate.

To do so, checkout the diffusers-rs repo, copy the weights in the data/ directory and run the following command:

cargo run --example stable-diffusion --features clap -- --prompt "A rusty robot holding a fire torch."

This is for the image-to-text pipeline, example using the image-to-image and inpainting pipelines can be found in the crate readme .

License

The license is unchanged, see the original version . In line with paragraph 4, the original copyright is preserved: Copyright (c) 2022 Robin Rombach and Patrick Esser and contributors

The model details section below is copied from the runwayml version, refer to the original repo for use restrictions, limitations, bias discussion etc.

Model Details
  • Developed by: Robin Rombach, Patrick Esser

  • Model type: Diffusion-based text-to-image generation model

  • Language(s): English

  • License: CreativeML Open RAIL++-M License

  • Model Description: This is a model that can be used to generate and modify images based on text prompts. It is a Latent Diffusion Model that uses a fixed, pretrained text encoder (OpenCLIP-ViT/H).

  • Resources for more information: GitHub Repository , Paper .

  • Cite as:

    @InProceedings{Rombach_2022_CVPR,
        author    = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn},
        title     = {High-Resolution Image Synthesis With Latent Diffusion Models},
        booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
        month     = {June},
        year      = {2022},
        pages     = {10684-10695}
    }
    
Weight Extraction

The weights have been converted by downloading them from the stabilityai/stable-diffusion-2-1 repo, and then running the following commands in the diffusers-rs repo .

After downloading the files, use Python to convert them to npz files.

import numpy as np
import torch
model = torch.load("./vae.bin")
np.savez("./vae_v2.1.npz", **{k: v.numpy() for k, v in model.items()})
model = torch.load("./unet.bin")
np.savez("./unet_v2.1.npz", **{k: v.numpy() for k, v in model.items()})

Convert these .npz files to .ot files via tensor-tools .

cargo run --release --example tensor-tools cp ./data/vae_v2.1.npz ./data/vae_v2.1.ot
cargo run --release --example tensor-tools cp ./data/unet_v2.1.npz ./data/unet_v2.1.ot

Runs of lmz rust-stable-diffusion-v2-1 on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About rust-stable-diffusion-v2-1 huggingface.co Model

More rust-stable-diffusion-v2-1 license Visit here:

https://choosealicense.com/licenses/creativeml-openrail-m

rust-stable-diffusion-v2-1 huggingface.co

rust-stable-diffusion-v2-1 huggingface.co is an AI model on huggingface.co that provides rust-stable-diffusion-v2-1's model effect (), which can be used instantly with this lmz rust-stable-diffusion-v2-1 model. huggingface.co supports a free trial of the rust-stable-diffusion-v2-1 model, and also provides paid use of the rust-stable-diffusion-v2-1. Support call rust-stable-diffusion-v2-1 model through api, including Node.js, Python, http.

rust-stable-diffusion-v2-1 huggingface.co Url

https://huggingface.co/lmz/rust-stable-diffusion-v2-1

lmz rust-stable-diffusion-v2-1 online free

rust-stable-diffusion-v2-1 huggingface.co is an online trial and call api platform, which integrates rust-stable-diffusion-v2-1's modeling effects, including api services, and provides a free online trial of rust-stable-diffusion-v2-1, you can try rust-stable-diffusion-v2-1 online for free by clicking the link below.

lmz rust-stable-diffusion-v2-1 online free url in huggingface.co:

https://huggingface.co/lmz/rust-stable-diffusion-v2-1

rust-stable-diffusion-v2-1 install

rust-stable-diffusion-v2-1 is an open source model from GitHub that offers a free installation service, and any user can find rust-stable-diffusion-v2-1 on GitHub to install. At the same time, huggingface.co provides the effect of rust-stable-diffusion-v2-1 install, users can directly use rust-stable-diffusion-v2-1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

rust-stable-diffusion-v2-1 install url in huggingface.co:

https://huggingface.co/lmz/rust-stable-diffusion-v2-1

Url of rust-stable-diffusion-v2-1

rust-stable-diffusion-v2-1 huggingface.co Url

Provider of rust-stable-diffusion-v2-1 huggingface.co

lmz
ORGANIZATIONS

Other API from lmz

huggingface.co

Total runs: 4.1K
Run Growth: 1.0K
Growth Rate: 25.15%
Updated:October 03 2023
huggingface.co

Total runs: 287
Run Growth: 45
Growth Rate: 15.41%
Updated:October 26 2023
huggingface.co

Total runs: 89
Run Growth: -199
Growth Rate: -96.14%
Updated:March 09 2024
huggingface.co

Total runs: 33
Run Growth: 26
Growth Rate: 78.79%
Updated:September 25 2024
huggingface.co

Total runs: 18
Run Growth: -2
Growth Rate: -11.11%
Updated:February 04 2024
huggingface.co

Total runs: 15
Run Growth: 3
Growth Rate: 20.00%
Updated:April 14 2024
huggingface.co

Total runs: 14
Run Growth: 2
Growth Rate: 14.29%
Updated:October 01 2023
huggingface.co

Total runs: 11
Run Growth: 8
Growth Rate: 72.73%
Updated:June 20 2025
huggingface.co

Total runs: 10
Run Growth: -3
Growth Rate: -30.00%
Updated:March 09 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 03 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 09 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 21 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 07 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 05 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 19 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 31 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 25 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 09 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 19 2023