An AI-powered storyboard generator that converts scripts into visual storyboards using OpenAI and Google's Imagen API.
- Convert text scripts into detailed storyboards
- Generate AI images for each scene using Google's Imagen
- Interactive web interface built with Gradio
- Visual descriptions and prompts for each scene
- Complete JSON output of the storyboard
- Clone the repository:
git clone https://github.com/your-username/Storyboard.git
cd Storyboard- Create a conda environment and install dependencies:
conda create --name storyboard python=3.10
conda activate storyboard
pip install -r requirements.txt- Set up environment variables:
cp .env.template .envThen edit .env and add your API keys:
OPENAI_API_KEY: Your OpenAI API keyGOOGLE_API_KEY: Your Google API key for Imagen
- Start the web interface:
python app.py-
Open the provided URL in your browser
-
Paste your script into the text input
-
Click "Generate Storyboard" to create your storyboard
The interface will display:
- Generated images for each scene
- Visual descriptions and prompts
- Complete JSON output of the storyboard
app.py: Gradio web interfacegenerate_storyboard.py: Script to storyboard conversiongenerate_image.py: Image generation using Google's Imagenrequirements.txt: Project dependencies.env.template: Template for environment variables
Generated files will be saved in:
output_script/: Generated JSON storyboardsoutput_img/: Generated images
MIT License