Instructions to use bghira/zlab-i1-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use bghira/zlab-i1-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("bghira/zlab-i1-diffusers", 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
| { | |
| "_class_name": "ZlabI1Transformer2DModel", | |
| "_diffusers_version": "0.39.0.dev0", | |
| "depth": 29, | |
| "hidden_size": 2016, | |
| "image_resolution": 1024, | |
| "in_channels": 32, | |
| "input_size": 128, | |
| "mlp_ratio": 4.0, | |
| "musubi_block_swap_device": "cpu", | |
| "musubi_blocks_to_swap": 0, | |
| "num_heads": 28, | |
| "patch_size": 2, | |
| "rope_theta": 10000.0, | |
| "text_embed_dim": 2304, | |
| "text_num_tokens": 256 | |
| } | |