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:
- 83f74385fb5ec8608184cc3d7f53ce2297e6f4b1e4e055c1333f6559a4857911
- Size of remote file:
- 1.75 GB
- SHA256:
- b6d12cd13d4f88ab14de83c9f1a2a8a83b995b5cc589888b8397a0edad12ad67
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.