Skip to content

This contains the Flax model of min(DALL·E) and code for converting it to PyTorch

License

Notifications You must be signed in to change notification settings

kuprel/min-dalle-flax

Repository files navigation

min(DALL·E) Flax

Open In Colab   Replicate

This is a minimal implementation of Boris Dayma's DALL·E Mini in flax. It has been stripped to the bare essentials necessary for doing inference. This repository also contains code for converting the flax model to torch.

See min(DALL·E) for the PyTorch version.

Setup

Run sh setup.sh to install dependencies and download pretrained models. The flax models can be manually downloaded here: VQGan, DALL·E Mini, DALL·E Mega

Usage

Use the python script image_from_text.py to generate images from the command line. Note: the command line script loads the models and parameters each time. To load a model once and generate multiple times, initialize MinDalleFlax, then call generate_image with some text and a seed.

About

This contains the Flax model of min(DALL·E) and code for converting it to PyTorch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages