Instructions to use OFA-Sys/small-stable-diffusion-v0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OFA-Sys/small-stable-diffusion-v0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OFA-Sys/small-stable-diffusion-v0", 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
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.42605f2
-
Update README.md
38e10e5
-
diffusion-deploy
1eb13a0
-
fix typo
63dbe71
-
Add `scale_factor` to vae config. (#5)
- Add `scale_factor` to vae config. (87240756e0c1e59911131e4d6e87f9e3c74f763b) Co-authored-by: Suraj Patil <valhalla@users.noreply.huggingface.co>f786356
-
add gradio demo (#1)
- add gradio demo (f6c9555ef0d26cdac46956c78e517631e819fe7d) Co-authored-by: Ahsen Khaliq <akhaliq@users.noreply.huggingface.co>9e11fe0
-
Update README.md
797cc55 -
:sparkles: add model weight
lulu.lcq2ffd613 -
:bento: add compressed sample images
lulu.lcq45520b2 -
Upload sample_images.jpg
f1550b4 -
initial commit
6d6db12