Story2Board

DavidDinkevichMIT长期未更新

无需训练就能把故事文本转成富有表现力的分镜图,基于扩散模型直接生成,省去微调成本。

Official implementation for "Story2Board: A Training‑Free Approach for Expressive Storyboard Generation"

暂无版本293star49fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/DavidDinkevich/Story2Board.git
cd Story2Board
conda create -n story2board python=3.12
conda activate story2board
pip install -r requirements.txt
硬件要求按 README 说明

README 未说明显存要求;官方仅支持 Linux + Python 3.12 + CUDA 12.x,基座为 FLUX.1-dev,实际需能跑该模型的 GPU;Windows/macOS 未官方测试。

需要 CUDA
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

免训练的故事板生成框架,用 LLM 拆分分镜提示,让扩散模型画出角色一致、构图多样的连环画

无需训练就能把故事文本转成富有表现力的分镜图,基于扩散模型直接生成,省去微调成本。

核心能力

  • 用 Latent Panel Anchoring 复用共享参考潜变量稳定角色身份
  • 用 RAVM 在强互注意力 token 对间混合注意力 value 提升跨面板连贯
  • 借助现成 LLM 把自由故事转成逐面板的 grounded 提示
  • 无需改架构或微调,直接套用现成扩散模型
  • 以 FLUX.1-dev 为基座 T2I 模型生成分镜

容易踩的坑

Windows/macOS 需改用 requirements_all_platforms.txt 且未官方测试;需自行准备 FLUX.1-dev 权重;想用特定 CUDA 版 PyTorch 要先单独装 PyTorch 再装依赖。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Story2Board: A Training‑Free Approach for Expressive Storyboard Generation

    Project page: https://daviddinkevich.github.io/Story2Board
    Paper (arXiv): https://arxiv.org/abs/2508.09983 Code: this repo


    Abstract

    We present Story2Board, a training-free framework for expressive storyboard generation from natural language. Existing methods narrowly focus on subject identity, overlooking key aspects of visual storytelling such as spatial composition, background evolution, and narrative pacing. To address this, we introduce a lightweight consistency framework composed of two components: Latent Panel Anchoring, which preserves a shared character reference across panels, and Reciprocal Attention Value Mixing (RAVM), which softly blends visual features between token pairs with strong reciprocal attention. Together, these mechanisms enhance coherence without architectural changes or fine-tuning, enabling state-of-the-art diffusion models to generate visually diverse yet consistent storyboards. We convert free-form stories into grounded panel-level prompts with an off-the-shelf LLM, and evaluate on a new Rich Storyboard Benchmark that measures layout diversity, background-grounded storytelling, and consistency. Qualitative/quantitative results and a user study show that Story2Board produces more dynamic, coherent, and narratively engaging storyboards than existing baselines.


    ⚙️ Installation

    Platform Support

    • ✅ Officially supported: Linux, Python 3.12, CUDA 12.x
    • 💻 Windows / macOS: not officially tested, but you can try with the alternative requirements file: requirements_all_platforms.txt

    We recommend a fresh Conda environment with Python 3.12.


    1) Clone the repository

    # 1) Clone the repository
    git clone https://github.com/DavidDinkevich/Story2Board.git
    cd Story2Board
    
    # 2) Create and activate env
    conda create -n story2board python=3.12
    conda activate story2board
    
    # 3) Install dependencies
    pip install -r requirements.txt
    

    Tip: If you want a specific CUDA build of PyTorch, install PyTorch first following the official instructions, then run pip install -r requirements.txt.


    Quickstart

    The entry point is main.py. The required arguments are:

    • --subject – the main subject (e.g., “smiling boy”).
    • --ref_panel_prompt – description of the reference (top) panel.
    • --panel_prompts – one or more prompts for the remaining panel(s).
    • --output_dir – where to save results.

    Minimal skeleton:

    python main.py   --subject "SUBJECT_NAME"   --ref_panel_prompt "REFERENCE_PANEL_TEXT"   --panel_prompts "PANEL_1_TEXT" "PANEL_2_TEXT" ...   --output_dir path/to/out
    

    Concrete example

    python main.py   --subject "fox with shimmering fur and glowing eyes"   --ref_panel_prompt "stepping onto a mossy stone path under twilight trees"   --panel_prompts     "bounding across a fallen tree over a mist-covered ravine glowing faintly with constellations"     "perched atop a broken archway of ancient stone, vines and silver moss hanging down, the twilight sky glowing behind him"     "watching a meteor shower from the edge of a luminous lake that reflects the stars perfectly"   --output_dir outputs
    

    This will generate a storyboard where the top panel is the reference, and each bottom panel reuses the same character identity while varying the scene/action.


    Outputs

    • Generated images are written to --output_dir.
    • The constructed, per-panel prompts are logged for reproducibility.

    Method Overview (Very Brief)

    • Latent Panel Anchoring: reuses a shared reference latent to stabilize identity across panels.
    • RAVM (Reciprocal Attention Value Mixing): gently blends attention values between token pairs with strong reciprocal attention, preserving the model’s prior while improving cross-panel coherence.

    Changelog

    • 21 Aug 2025: Fixed missing line for Latent Panel Anchoring (LPA) in the released code (commit 34537e0).
      • Restores expected behavior described in the paper.

    BibTeX

    @article{dinkevich2025story2board,
      title={Story2Board: A Training-Free Approach for Expressive Storyboard Generation},
      author={Dinkevich, David and Levy, Matan and Avrahami, Omri and Samuel, Dvir and Lischinski, Dani},
      journal={arXiv preprint arXiv:2508.09983},
      year={2025}
    }
    

    Acknowledgements

    This repository builds on the excellent open-source ecosystems of PyTorch and Hugging Face Diffusers, and uses FLUX.1-dev weights as the base T2I model.


    License

    See LICENSE in this repository.