A playground for text-to-image enthusiasts using Stable Diffusion V2.
November 2022, major update
The original version of this repository used DALL-E Mini. With the recent release of Stable Diffusion (SD) V2 and the ease of implementation - this repository has moved to use SD over DALL-E Mini.
Also see Whisper Playground - a playground for building real-time speech2text web apps using OpenAI's Whisper
You can tinker with the DALL-E playground using a Github-hosted frontend. Follow these steps:
Your url is:
.--> Image generation server is up and running!
backendUrl
query parameter should be the url from the previous stepGeneral note: while it is possible to run the backend on the free tier of Google Colab, generating more than ~2 images would take >1min, which will result in a frontend timeout. Consider upgrading to Colab Pro or run the backend notebook on your stronger ML machine (e.g. AWS EC2).
Follow these steps in case you'd like to clone and run the DALL-E Playground locally:
cd backend && python3 -m venv ENV_NAME
source venv/bin/activate
pip install -r requirements.txt
python3 app.py --port 8080
(you can change from 8080 to your own port)cd interface && npm install
and run
it npm start
Window's WSL2 Linux layer has some unique issues getting running with GPU support. Nvidia CUDA drivers are installed on the Windows side instead of Linux, but jax does not see the GPU without compiling from source. Here are extra instructions to get jax compiled.
jaxlib
and jax
from source, remember to enable cuda during compilation with python3 build/build.py --enable_cuda
instructionsjaxlib
, you might hit a broken configuration file, solution here: https://github.com/google/jax/issues/11068WSL2 installs are fairly bare bones, expect to install packages like npm
, python3-pip
and many others to get things working. More troubleshooting here
docker-compose up
, add -d
to docker-compose up
if you'd like to run it in the backgroundCopy backend's url from step 2 and paste it in the backend's url input within the web app.
webapp at http://localhost:3000/dalle-playground
The original reposistory used @borisdayma's DALL-E Mini.