| title | DALL·E mini |
|---|---|
| emoji | 🥑 |
| colorFrom | yellow |
| colorTo | green |
| sdk | gradio |
| sdk_version | 3.0b6 |
| app_file | app/gradio/app.py |
| pinned | true |
| license | apache-2.0 |
Generate images from a text prompt
Our logo was generated with DALL·E mini using the prompt "logo of an armchair in the shape of an avocado".
There are several ways to use DALL·E mini to create your own images:
-
experiment with the pipeline step by step through our
inference pipeline notebook -
spin off your own app with DALL-E Playground repository (thanks Sahar)
-
try DALL·E Flow project for generating, diffusion, upscaling in a Human-in-the-Loop workflow.
Refer to our report.
Join the community on the LAION Discord. Any contribution is welcome, from reporting issues to proposing fixes/improvements or testing the model with cool prompts!
For inference only, use pip install git+https://github.com/borisdayma/dalle-mini.git.
For development, clone the repo and use pip install -e ".[dev]".
Before making a PR, check style with make style.
Use tools/train/train.py.
You can also adjust the sweep configuration file if you need to perform a hyperparameter search.
Trained models are on 🤗 Model Hub:
- VQGAN-f16-16384 for encoding/decoding images
- DALL·E mini for generating images from a text prompt
The "armchair in the shape of an avocado" was used by OpenAI when releasing DALL·E to illustrate the model's capabilities. Having successful predictions on this prompt represents a big milestone to us.
- 🤗 Hugging Face for organizing the FLAX/JAX community week
- Google TPU Research Cloud (TRC) program for providing computing resources
- Weights & Biases for providing the infrastructure for experiment tracking and model management
DALL·E mini was initially developed by:
- Boris Dayma
- Suraj Patil
- Pedro Cuenca
- Khalid Saifullah
- Tanishq Abraham
- Phúc Lê Khắc
- Luke Melas
- Ritobrata Ghosh
Many thanks to the people who helped make it better:
- the DALLE-Pytorch and EleutherAI communities for testing and exchanging cool ideas
- Rohan Anil for adding Distributed Shampoo optimizer and always giving great suggestions
- Phil Wang has provided a lot of cool implementations of transformer variants and gives interesting insights with x-transformers
- Katherine Crowson for super conditioning
- the Gradio team made an amazing UI for our app
If you find DALL·E mini useful in your research or wish to refer, please use the following BibTeX entry.
@misc{Dayma_DALL·E_Mini_2021,
author = {Dayma, Boris and Patil, Suraj and Cuenca, Pedro and Saifullah, Khalid and Abraham, Tanishq and Lê Khắc, Phúc and Melas, Luke and Ghosh, Ritobrata},
doi = {10.5281/zenodo.5146400},
month = {7},
title = {DALL·E Mini},
url = {https://github.com/borisdayma/dalle-mini},
year = {2021}
}
Original DALL·E from "Zero-Shot Text-to-Image Generation" with image quantization from "Learning Transferable Visual Models From Natural Language Supervision".
Image encoder from "Taming Transformers for High-Resolution Image Synthesis".
Sequence to sequence model based on "BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension" with implementation of a few variants:
- "GLU Variants Improve Transformer"
- "Deepnet: Scaling Transformers to 1,000 Layers"
- "NormFormer: Improved Transformer Pretraining with Extra Normalization"
- "Swin Transformer: Hierarchical Vision Transformer using Shifted Windows"
- "CogView: Mastering Text-to-Image Generation via Transformers"
- "Root Mean Square Layer Normalization"
- "Sinkformers: Transformers with Doubly Stochastic Attention"
Main optimizer (Distributed Shampoo) from "Scalable Second Order Optimization for Deep Learning".
< 801B div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@misc{ title={Zero-Shot Text-to-Image Generation}, author={Aditya Ramesh and Mikhail Pavlov and Gabriel Goh and Scott Gray and Chelsea Voss and Alec Radford and Mark Chen and Ilya Sutskever}, year={2021}, eprint={2102.12092}, archivePrefix={arXiv}, primaryClass={cs.CV} }">@misc{
title={Zero-Shot Text-to-Image Generation},
author={Aditya Ramesh and Mikhail Pavlov and Gabriel Goh and Scott Gray and Chelsea Voss and Alec Radford and Mark Chen and Ilya Sutskever},
year={2021},
eprint={2102.12092},
archivePrefix={arXiv},
primaryClass={cs.CV}
}