showlab/Code2Video

★ 2,028⑂ 0

[ICML 2026] Video generation via code

About showlab/Code2Video

showlab/Code2Video is an open-source project on GitHub, mainly written in Python. [ICML 2026] Video generation via code It currently holds 2,028 stars and 0 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Video Projects board and on the AI AI Video Projects list.

GitHub Repository Details

Repository showlab/Code2Video · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

Code2Video: Video Generation via Code

English | 简体中文

Code2Video: A Code-centric Paradigm for Educational Video Generation
以代码为中心的教学视频生成新范式

Yanzhe Chen*, Kevin Qinghong Lin*, Mike Zheng Shou
Show Lab @ National University of Singapore

  📄 Paper   |     🤗 Daily Paper   |     🤗 Dataset   |     🌐 Project Website   |     💬 X (Twitter)

https://github.com/user-attachments/assets/d906423f-734a-41c9-b102-b113ad3b3c25

Learning Topic Veo3 Wan2.2 Code2Video (Ours)
Hanoi Problem
Large Language Model
Pure Fourier Series

---

🔥 Update

Any contributions are welcome!

---

Table of Contents

---

🌟 Overview

https://github.com/showlab/Code2Video/blob/HEAD/Overview

Code2Video is an agentic, code-centric framework that generates high-quality educational videos from knowledge points. Unlike pixel-based text-to-video models, our approach leverages executable Manim code to ensure clarity, coherence, and reproducibility.

Key Features:

---

🚀 Try Code2Video

https://github.com/showlab/Code2Video/blob/HEAD/Approach

1. Requirements

cd src/
pip install -r requirements.txt
`

Here is the official installation guide for Manim Community v0.19.0, to help everyone correctly set up the environment.

2. Configure LLM API Keys

Fill in your API credentials in api_config.json.

3. Run Agents

We provide two shell scripts for different generation modes:

(a) Any Query

Script: run_agent_single.sh

Generates a video from a single knowledge point specified in the script.

sh run_agent_single.sh --knowledge_point "Linear transformations and matrices"

Important parameters inside run_agent_single.sh:

---

(b) Full Benchmark Mode

Script: run_agent.sh

Runs all (or a subset of) learning topics defined in long_video_topics_list.json.

sh run_agent.sh

Important parameters inside run_agent.sh:

4. Project Organization

A suggested directory structure:

src/
│── agent.py
│── run_agent.sh
│── run_agent_single.sh
│── api_config.json
│── ...
│
├── assets/
│   ├── icons/          #  downloaded visual assets cache via IconFinder API
│   └── reference/      # reference images
│
├── json_files/         # JSON-based topic lists & metadata
├── prompts/            # prompt templates for LLM calls
├── CASES/              # generated cases, organized by FOLDER_PREFIX
│   └── TEST-LIST/      # example multi-topic generation results
│   └── TEST-single/    # example single-topic generation results

---

📊 Evaluation -- MMMC

We evaluate along three complementary dimensions:

1. Knowledge Transfer (TeachQuiz)

   python3 eval_TQ.py
   

2. Aesthetic & Structural Quality (AES)

   python3 eval_AES.py
   

3. Efficiency Metrics (During Video Creating)

👉 More data and evaluation scripts are available at: HuggingFace: MMMC Benchmark

---

🙏 Acknowledgements

These videos represent the upper bound of clarity and aesthetics in educational video design and inform our evaluation metrics.

---

📌 Citation

If you find our work useful, please cite:

@misc{code2video,
      title={Code2Video: A Code-centric Paradigm for Educational Video Generation}, 
      author={Yanzhe Chen and Kevin Qinghong Lin and Mike Zheng Shou},
      year={2025},
      eprint={2510.01174},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2510.01174}, 
}

If you like our project, please give us a star ⭐ on GitHub for the latest update! Star History Chart

GitHub Stars & Activity

2,028Stars
0Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars2,028
Forks0
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

calesthio / OpenMontage

Python★ 59,376⑂ 0
2

ATH-MaaS / Pixelle-Video

Python★ 28,141⑂ 0
3

KlingAIResearch / LivePortrait

Python★ 19,050⑂ 0
4

Wan-Video / Wan2.2

Python★ 17,520⑂ 0
5

Zulko / moviepy

Python★ 14,897⑂ 0
6

zai-org / CogVideo

Python★ 13,018⑂ 0
7

Tencent-Hunyuan / HunyuanVideo

Python★ 12,527⑂ 0
8

HKUDS / ViMax

Python★ 12,393⑂ 0

More AI Rankings