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 是一个智能体流水线,能把单个文本提示变成一条带完整旁白的白板动画视频:它调研主题、撰写脚本、规划场景、生成白板风格画作、让绘制过程动起来、合成配音并烧录字幕。
这是我要导入的库,还是要运行的独立流水线?它是一个从 CLI 运行的端到端 Python 流水线,由一个 Director Agent 驱动,负责把请求拆分成场景并委派给专门的子智能体/工具,不是要导入其他应用的库。
怎么让流水线跑起来?在 genai-pipeline 文件夹中创建包含你的 Gemini API 密钥的 .env 文件(复制 .env.example),安装根目录的 requirements.txt,然后运行流水线 CLI,它会交互式地询问主题、调研模式、参考图片、语言以及是否使用 Veo 视频。
试用之前需要 Gemini API 密钥吗?需要,Gemini API 密钥是唯一的硬性要求;Director Agent、图像生成和 TTS 都运行在 Gemini 技术栈上,只用这一个密钥,流水线就能完全以单遍模式运行。
如果我跳过 SAM3 分割服务器会怎样?如果没有指向托管 SAM3 服务器的 SAMAPIURL,流水线会直接跳过对象分割,用更简单的单遍模式绘制白板动画,而不是高级的多遍绘制。
它如何把视频生成成本保持在低位?它不生成长段的 AI 视频片段,而是把少量静态线稿素描序列拉伸到与旁白长度一致,例如仅 32 秒的原始画面被拉伸成 2 分 30 秒的最终视频。
旁白可以用哪些语言?导演、脚本旁白和字幕可以动态生成多种语言,如印地语、英语和西班牙语,在运行 CLI 时交互选择。
可选的 Veo 集成带来什么?可以启用 Veo 视频生成,把丰富的 AI 生成视频片段插入到特定规划好的场景中,而不只依赖手绘白板动画。
Size
20 MB
Stars
175
Age
3y
Commits · 90 Days