#98 · Primary category: Image Generation

DALLE-pytorch

artificial-intelligence attention-mechanism deep-learning multi-modal text-to-image transformers

Implementation / replication of DALL-E, OpenAI's Text to Image Transformer, in Pytorch

Project last updated:02/17/24

GitHub Stars

5.6K

Forks

641

Contributors

24

License

MIT

Why we included this project

This project reimplements OpenAI's original DALL-E text-to-image transformer in PyTorch, with training and generation code that is readable enough to follow. Researchers and engineers can swap in the DiscreteVAE or a pretrained VQGAN encoder and train a small-scale model on their own image-caption dataset. Because the VAE, autoregressive transformer, and CLIP-style re-ranking step sit as separate components, the code doubles as a working tutorial on how discrete image tokens and transformer generation fit together. For anyone exploring pre-DALL-E-2 pipelines or wanting to reproduce the 2021 approach on modest hardware, this is far more approachable than the paper alone.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category