Instructions to use PixArt-alpha/PixArt-XL-2-1024-MS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use PixArt-alpha/PixArt-XL-2-1024-MS with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("PixArt-alpha/PixArt-XL-2-1024-MS", 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
Commit ·
0bce2a7
1
Parent(s): 196525a
correct
Browse files
transformer/config.json
CHANGED
|
@@ -10,8 +10,8 @@
|
|
| 10 |
"double_self_attention": false,
|
| 11 |
"dropout": 0.0,
|
| 12 |
"in_channels": 4,
|
| 13 |
-
"interpolation_scale": 2,
|
| 14 |
"norm_elementwise_affine": false,
|
|
|
|
| 15 |
"norm_num_groups": 32,
|
| 16 |
"norm_type": "ada_norm_single",
|
| 17 |
"num_attention_heads": 16,
|
|
@@ -20,7 +20,6 @@
|
|
| 20 |
"num_vector_embeds": null,
|
| 21 |
"only_cross_attention": false,
|
| 22 |
"out_channels": 8,
|
| 23 |
-
"output_type": "pixart_dit",
|
| 24 |
"patch_size": 2,
|
| 25 |
"sample_size": 128,
|
| 26 |
"upcast_attention": false,
|
|
|
|
| 10 |
"double_self_attention": false,
|
| 11 |
"dropout": 0.0,
|
| 12 |
"in_channels": 4,
|
|
|
|
| 13 |
"norm_elementwise_affine": false,
|
| 14 |
+
"norm_eps": 1e-06,
|
| 15 |
"norm_num_groups": 32,
|
| 16 |
"norm_type": "ada_norm_single",
|
| 17 |
"num_attention_heads": 16,
|
|
|
|
| 20 |
"num_vector_embeds": null,
|
| 21 |
"only_cross_attention": false,
|
| 22 |
"out_channels": 8,
|
|
|
|
| 23 |
"patch_size": 2,
|
| 24 |
"sample_size": 128,
|
| 25 |
"upcast_attention": false,
|
transformer/diffusion_pytorch_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:809a92d52a4a228f381a4b4f4b76051294b73285fb0cbb02f0ad24f9372217a8
|
| 3 |
+
size 2447431856
|