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