Instructions to use patrickvonplaten/test_sd_2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use patrickvonplaten/test_sd_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("patrickvonplaten/test_sd_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
- Local Apps Settings
- Draw Things
- DiffusionBee
Correct `sample_size` of Stable Diffusion 2's unet to have correct width and height default
#1
by patrickvonplaten - opened
- unet/config.json +1 -1
unet/config.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
| 33 |
"norm_eps": 1e-05,
|
| 34 |
"norm_num_groups": 32,
|
| 35 |
"out_channels": 4,
|
| 36 |
-
"sample_size":
|
| 37 |
"up_block_types": [
|
| 38 |
"UpBlock2D",
|
| 39 |
"CrossAttnUpBlock2D",
|
|
|
|
| 33 |
"norm_eps": 1e-05,
|
| 34 |
"norm_num_groups": 32,
|
| 35 |
"out_channels": 4,
|
| 36 |
+
"sample_size": 96,
|
| 37 |
"up_block_types": [
|
| 38 |
"UpBlock2D",
|
| 39 |
"CrossAttnUpBlock2D",
|