Text-to-Image
Diffusers
UniDiffuserPipeline
image-to-text
image-captioning
image-variation
text-variation
multi-modality
generative model
Instructions to use dg845/unidiffuser-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use dg845/unidiffuser-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("dg845/unidiffuser-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
- Draw Things
- DiffusionBee
| { | |
| "_class_name": "UniDiffuserTextDecoder", | |
| "_diffusers_version": "0.15.0.dev0", | |
| "activation_function": "gelu", | |
| "attn_pdrop": 0.1, | |
| "embd_pdrop": 0.1, | |
| "initializer_range": 0.02, | |
| "layer_norm_epsilon": 1e-05, | |
| "n_embd": 768, | |
| "n_head": 12, | |
| "n_inner": 3072, | |
| "n_layer": 12, | |
| "n_positions": 1024, | |
| "prefix_hidden_dim": 64, | |
| "prefix_inner_dim": 768, | |
| "prefix_length": 77, | |
| "reorder_and_upcast_attn": false, | |
| "resid_pdrop": 0.1, | |
| "scale_attn_by_inverse_layer_idx": false, | |
| "scale_attn_weights": true, | |
| "use_cache": true, | |
| "vocab_size": 50258 | |
| } | |