How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("doji-tech/tiny-stable-diffusion-1-pipe-onnx", dtype=torch.bfloat16, device_map="cuda")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

Tiny random Stable Diffusion 1 pipeline (ONNX)

Random weights, for tests only. The images it makes are noise.

The components are the dummy components of the official diffusers 0.43.0 test tests/pipelines/stable_diffusion/test_stable_diffusion.py (get_dummy_components, seeded with torch.manual_seed(0)), exported to ONNX with optimum.

The regression tests of tools.doji.diffusers use it. tools/tiny_pipelines/make_tiny_pipelines.py in that repository makes it.

Downloads last month
32
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support