Instructions to use madtune/pixeldit-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use madtune/pixeldit-diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("nvidia/PixelDiT-1300M-1024px", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("madtune/pixeldit-diffusers") 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
Upload folder using huggingface_hub
Browse files
transformer/config.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "PixelDiTModel",
|
| 3 |
+
"_diffusers_version": "0.37.1",
|
| 4 |
+
"hidden_size": 1536,
|
| 5 |
+
"in_channels": 3,
|
| 6 |
+
"num_groups": 24,
|
| 7 |
+
"num_text_blocks": 4,
|
| 8 |
+
"patch_depth": 14,
|
| 9 |
+
"patch_size": 16,
|
| 10 |
+
"pixel_attn_hidden_size": 1152,
|
| 11 |
+
"pixel_depth": 2,
|
| 12 |
+
"pixel_hidden_size": 16,
|
| 13 |
+
"pixel_num_groups": 16,
|
| 14 |
+
"repa_encoder_index": -1,
|
| 15 |
+
"text_rope_theta": 10000.0,
|
| 16 |
+
"txt_embed_dim": 2304,
|
| 17 |
+
"txt_max_length": 300,
|
| 18 |
+
"use_pixel_abs_pos": true,
|
| 19 |
+
"use_text_rope": true
|
| 20 |
+
}
|
transformer/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91f502c1de13123e63cc78a51024b03458440f490a7ca09e0987748e9b09ac43
|
| 3 |
+
size 5209926908
|