Instructions to use doji-tech/tiny-stable-diffusion-2-pipe-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use doji-tech/tiny-stable-diffusion-2-pipe-onnx with Diffusers:
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-2-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] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Tiny random Stable Diffusion 2 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_2/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
- 43