Instructions to use PixArt-alpha/PixArt-Sigma-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-Sigma-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-Sigma-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] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
| { | |
| "_class_name": "Transformer2DModel", | |
| "_diffusers_version": "0.28.0.dev0", | |
| "activation_fn": "gelu-approximate", | |
| "attention_bias": true, | |
| "attention_head_dim": 72, | |
| "attention_type": "default", | |
| "caption_channels": 4096, | |
| "cross_attention_dim": 1152, | |
| "double_self_attention": false, | |
| "dropout": 0.0, | |
| "in_channels": 4, | |
| "interpolation_scale": 2, | |
| "norm_elementwise_affine": false, | |
| "norm_eps": 1e-06, | |
| "norm_num_groups": 32, | |
| "norm_type": "ada_norm_single", | |
| "num_attention_heads": 16, | |
| "num_embeds_ada_norm": 1000, | |
| "num_layers": 28, | |
| "num_vector_embeds": null, | |
| "only_cross_attention": false, | |
| "out_channels": 8, | |
| "patch_size": 2, | |
| "sample_size": 128, | |
| "upcast_attention": false, | |
| "use_additional_conditions": false, | |
| "use_linear_projection": false | |
| } | |