Instructions to use julienkay/tiny-stable-diffusion-pipe-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use julienkay/tiny-stable-diffusion-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("julienkay/tiny-stable-diffusion-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
Unity Inference Engine
#1
by Esquilofreniko - opened
How can i use this with Unity Inference Engine to generate small sprites at runtime? :)
Could you help me?
Hey, sorry should have put a readme. This is only an onnx version of this test pipeline here: https://huggingface.co/hf-internal-testing/tiny-stable-diffusion-pipe
(It doesn't actually generate valid images, it's just useful for automated tests)