storyboard-ai README

The project's README from github.com/yogendra-yatnalkar/storyboard-ai. As one markdown file: README.md.

Storyboard AI

[!NOTE] Latest Release: SAM3 object segmentation is now completely optional, allowing you to run the entire pipeline directly with just your Gemini API key (running whiteboard animations in single-pass mode).

An intelligent agentic pipeline that automates the creation of high-quality, fully narrated whiteboard animation videos from a simple text prompt.

Overview

Storyboard AI is a complete end-to-end framework. It takes in a high-level topic or context and handles everything: researching the topic, writing a compelling narrative script, planning the visual storyboard, generating custom whiteboard-style artwork, animating the drawing process, synthesizing voiceover narration, and burning perfectly timed subtitles.

It operates autonomously using an agentic approach, meaning the Director Agent breaks down the user request into manageable scenes, delegates tasks to specialized sub-agents/tools, and finally stitches everything back together.

Demo Video: What is Adhik Maas and its relation with Shalivahan Shaka (HINDI) (strictly 4 scenes)

[!IMPORTANT] The entire demo video below was generated automatically from a single input prompt/instruction: the title itself.

https://github.com/user-attachments/assets/433e86bc-7ad4-433b-8b09-117e1f3af9e9

Major Pipeline Steps Executed:

  1. Web-search (not deepresearch): Performed web-grounded research to gather facts about Adhik Maas and Shalivahan Shaka.
  2. Grounded Image Generation: Generated custom whiteboard illustrations utilizing internet-grounded reference images for scene visual accuracy.
  3. Whiteboard Animation + Veo: Segmented objects and calculated vector sketch contours using SAM 3 for custom drawing animation, alongside Veo video generation to stitch dynamic segments.
  4. Gemini Native Audio TTS: Synthesized high-quality narration audio in Hindi natively.


Core Features


⚡ Key Advantages


⚙️ Setup & Configuration

1. Environment Configuration (.env)

Create a .env file in the genai-pipeline folder (or copy genai-pipeline/.env.example) and configure the following variables:

# Google API Key for LLM, TTS, Image Gen, and Veo Video Gen
GOOGLE_API_KEY="your-google-api-key-here"

# Hugging Face Access Token (Optional: Only required to download SAM 3 model weights if hosting SAM3 yourself)
# HF_API_KEY="your-huggingface-token-here"

# Set to TRUE if using Vertex AI, or FALSE to use Google Developer API (default)
GOOGLE_GENAI_USE_VERTEXAI=FALSE

2. SAM 3 Model Hosting (FastAPI & GCP Cloud Run - Optional)

The whiteboard drawing sequence generator can utilize instance segmentation for advanced multi-pass drawing. We host a self-contained FastAPI server that wraps the Segment Anything Model 3 (SAM 3).

3. Pipeline Configuration Settings (config.py)

Core configuration parameters are set in genai-pipeline/config.py:

4. Python Environment & Dependencies

Set up your Python environment (Conda environment recommended) and install the verified dependencies:


🚀 How to Run & View Outputs

Step 1: Install Python Dependencies

Depending on the component you are running, install the appropriate requirements:

Step 2: Run the Pipeline CLI

# Navigate to the core agent directory
cd genai-pipeline

# Run the interactive pipeline script
python pipeline.py

Step 3: Interactive CLI Setup

The CLI will guide you through:

  1. Context/Prompt: Enter the main topic for your video (e.g., "The History of Space Travel").
  2. Research Mode: Choose between [1] Deep Research, [2] Web Search (Fast), or [3] None.
  3. Reference Images: Enable or disable internet search for visual references (Y/n).
  4. Fast Mode: Enable parallel image/audio generation for all scenes to save time (Y/n).
  5. Narration Language: Enter the target language for the script (e.g., hindi or english).
  6. Veo Video: Enable or disable Veo AI video generation (y/N).

Step 4: Locate Outputs

All intermediate assets and final outputs are saved under the genai-pipeline/output/run_<timestamp>/ folder:


🏷️ Release v1.0.0

This release marks the official launch of Storyboard AI v1.0.0! With this launch, the agentic whiteboard generation pipeline is fully operational with complete end-to-end automation, multimodal asset generation (images, speech pacing, video stitching), and optional GPU-accelerated SAM 3 segments hosting on GCP Cloud Run.


🗺️ Roadmap & Upcoming Features

We are actively developing new features to expand compatibility and ease of deployment:


✅ Completed Features

storyboard-ai (yogendra-yatnalkar/storyboard-ai)

Searching Database…

Что это?Storyboard AI — агентский конвейер, превращающий один текстовый промпт в полностью озвученное видео с анимацией на белой доске: он исследует тему, пишет сценарий, планирует сцены, генерирует графику в стиле whiteboard, анимирует рисование, синтезирует закадровый голос и вшивает субтитры.
Это библиотека для импорта или самостоятельный конвейер для запуска?Это сквозной Python-конвейер, запускаемый из CLI и управляемый Director Agent, который разбивает запрос на сцены и делегирует специализированным субагентам/инструментам, а не библиотека, которую вы импортируете в другое приложение.
Как запустить конвейер?Создайте файл .env в папке genai-pipeline (скопировав .env.example) с вашим API-ключом Gemini, установите корневой requirements.txt, затем запустите CLI конвейера, который интерактивно спрашивает тему, режим исследования, референсные изображения, язык и использовать ли видео Veo.
Нужен ли API-ключ Gemini, прежде чем пробовать это?Да, API-ключ Gemini — единственное жёсткое требование; Director Agent, генерация изображений и TTS работают на стеке Gemini, и конвейер может полностью работать в режиме single-pass только с этим ключом.
Что будет, если пропустить сервер сегментации SAM3?Без SAMAPIURL, указывающего на хостируемый сервер SAM3, конвейер просто пропускает сегментацию объектов и рисует whiteboard-анимацию в более простом режиме single-pass вместо продвинутого многопроходного рисования.
Как он удерживает низкими затраты на генерацию видео?Вместо генерации длинных ИИ-видеоклипов он растягивает небольшое число статичных последовательностей линейных скетчей под длину озвучки: например, всего 32 секунды сырых визуалов растягиваются в итоговое видео на 2 минуты 30 секунд.
На каких языках может быть озвучка?Director, озвучка сценария и субтитры могут динамически генерироваться на нескольких языках, таких как хинди, английский и испанский, выбираемых интерактивно при запуске CLI.
Что добавляет опциональная интеграция с Veo?Можно включить генерацию видео Veo, чтобы вставлять насыщенные ИИ-видеосегменты в конкретные запланированные сцены вместо опоры только на нарисованную вручную whiteboard-анимацию.
Size
20 MB
Stars
175
Age
3y
Commits · 90 Days