GithubHelp home page GithubHelp logo

sschoedel / dalle-playground Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saharmor/dalle-playground

0.0 0.0 0.0 2.7 MB

A playground to generate images from any text prompt based on OpenAI's DALL-E https://openai.com/blog/dall-e/

License: MIT License

Python 10.46% Jupyter Notebook 8.42% HTML 6.63% CSS 1.95% JavaScript 72.54%

dalle-playground's Introduction

Dali

DALL-E Playground

A playground for DALL-E enthusiasts to tinker with the open-source version of OpenAI's DALL-E, based on DALL-E Mini.

DALLE.Playground.demo.mp4

Fast usage

You can tinker with the DALL-E playground using a Github-hosted frontend. Follow these steps:

  1. Run the DALL-E backend using Google Colab and this notebook
  2. Copy the URL from the last executed cell. Look for the line having your url is: https://XXXX.loca.lt.
  3. Browse https://saharmor.github.io/dalle-playground/?backendUrl=https://XXXX.loca.lt where the backendUrl query parameter should be the url from the previous step.

General note: while it's possible to run the DALL-E Mini backend on the free tier of Google Colab, generating more than 1-2 images would take more than 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).

Local development

Follow these steps in case you'd like to clone and run the DALL-E playground locally:

  1. Clone or fork this repository
  2. Create a virtual environment cd backend && python3 -m venv ENV_NAME
  3. Install requirements pip install -r requirements.txt
  4. Make sure you have pytorch and its dependencies installed Installation guide
  5. Run web server python app.py
  6. In a different terminal, install frontend's modules cd interface && npm install and run it npm start
  7. Copy backend's url from step 5 and paste it in the backend's url input within the web app

Acknowledgements

This repo is a full-stack flavour of Boris Dayma's DALL-E Mini repository.

dalle-playground's People

Contributors

saharmor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.