Text-to-Image
Diffusers
Safetensors
StableDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
jax-diffusers-event
Instructions to use bguisard/stable-diffusion-nano-2-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use bguisard/stable-diffusion-nano-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("bguisard/stable-diffusion-nano-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
- Draw Things
- DiffusionBee
sample size again
#3
by radames - opened
actually if we want default to be 128
width = width or self.unet.config.sample_size * 2 ** (len(self.vae.config.block_out_channels) - 1)
16 * 2**(4- 1) = 128
Thanks. I should have tested your other change before merging. This seem to be working as expected now.
bguisard changed pull request status to merged