Instructions to use hf-internal-testing/tiny-stable-diffusion-torch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hf-internal-testing/tiny-stable-diffusion-torch with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hf-internal-testing/tiny-stable-diffusion-torch", 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
Update sample size to 64
#3
by Jingya HF Staff - opened
- unet/config.json +1 -1
unet/config.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
| 22 |
"norm_eps": 1e-05,
|
| 23 |
"norm_num_groups": 32,
|
| 24 |
"out_channels": 4,
|
| 25 |
-
"sample_size":
|
| 26 |
"up_block_types": [
|
| 27 |
"CrossAttnUpBlock2D",
|
| 28 |
"UpBlock2D"
|
|
|
|
| 22 |
"norm_eps": 1e-05,
|
| 23 |
"norm_num_groups": 32,
|
| 24 |
"out_channels": 4,
|
| 25 |
+
"sample_size": 64,
|
| 26 |
"up_block_types": [
|
| 27 |
"CrossAttnUpBlock2D",
|
| 28 |
"UpBlock2D"
|