Instructions to use Milabench/stable-diffusion-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Milabench/stable-diffusion-2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Milabench/stable-diffusion-2", 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
- Xet hash:
- 793eeb0931b5ce184f0dac52fd74a3df2ec7e154b21b239ace6b1db2f1d80f51
- Size of remote file:
- 3.46 GB
- SHA256:
- df895df60d360b4b18e9c05485080e3dd35691452460c7234031b64465120d5a
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.