VideoCoCo is a physics-faithful video generation pipeline that uses code as a chain-of-thought to first simulate and render a neutral proxy video with correct physics, then restyle it photorealistically.

Stars

4

7-day growth

No data

Forks

2

Open issues

1

License

No data

Last updated

2026-07-29

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It introduces an explicit reasoning paradigm that generates physics-accurate motion before committing to pixels, decoupling physical fidelity from visual style and enabling verifiable draft-edit workflows.

Who it is for

  • Researchers in video generation and physics simulation
  • AI practitioners interested in chain-of-thought for visual tasks
  • Content creators needing physically plausible video edits
  • Computer vision engineers exploring simulation-based pipelines

Use cases

  • Generating short video clips with accurate buoyancy, melting, or elasticity
  • Editing existing videos to impose physically correct motion while keeping style
  • Rapid prototyping of physical scenarios via code simulation then photorealistic restyling
  • Benchmarking physics faithfulness in video generation models

Strengths

  • Explicit physical reasoning via code agent and sandbox rendering before pixel generation
  • Verification step ensures causal consistency between simulation and plan
  • Open-source inference code, toy dataset, and tuned weights available on Hugging Face Hub
  • Modular pipeline with five agent skills, each focused on a clear sub-task

Considerations

  • Toy dataset contains only 8 hand-checked cases, insufficient for training-scale evaluation
  • Dependency on external OmniWeaving model and the Tencent HY Community License
  • Tuned weights are still uploading (as per README) and may not be immediately available

README quick start

🎬 VideoCoCo: Code as CoT for Physics-Faithful Video Generation

Official repository for VideoCoCo, a physics-faithful video generation pipeline that uses code as a chain-of-thought to draft physics before committing to pixels.

[🤗 Weights] [💻 Code]

💥 News

  • [2026.07.29] We release the Agent Skills, a toy dataset, and the inference code. Tuned weights are uploading to the 🤗 Hub.

🪄 Draft Before Generation

We propose VideoCoCo, an interleaved reasoning paradigm that carries a physical prior through an explicit visual draft before committing to pixels.

Our method 🎨 first has a code agent write simulation code and render it in a sandbox as a neutral white/clay proxy video that carries the correct motion, causality, and physics — meaning is expressed by shape, transparency, deformation, and coverage, never by color.

Then we 🔎 verify the proxy against the physical plan (a caused state must stay hidden until its causing transition), and 🖼️ restyle the proxy into a photorealistic video driven by a per-case edit instruction.

📦 What's in this repo

  • skill/ — the five Agent Skills forming the pipeline: physical-state-plannerphysical-video-blender-implementerblender-mcp-videoseedance-edit-promptseedance-distill.
  • data/toy_cases/ — 8 hand-checked video-to-video (v2v) triplets.
  • inference/ — batch inference scripts + a patch against upstream OmniWeaving.
  • 🤗 mickyhimself/VideoCoCo — the tuned transformer.

🎬 Toy dataset

data/toy_cases/ — 8 v2v triplets, one directory per case:

data/toy_cases/
├── manifest.jsonl                 # one JSON line per case (index)
├── 0000_buoyancy/
│   ├── video.mp4                  # source: neutral white/clay physics proxy
│   ├── seedance.mp4               # target: photoreal restyle
│   └── edit_prompt.txt            # instruction used to restyle proxy -> photoreal
└── ...

Each manifest.jsonl line:

{"case_id": "0000_buoyancy", "source": "0000_buoyancy/video.mp4", "target": "0000_buoyancy/seedance.mp4", "instruction": "...", "category": "buoyancy"}
  • source (video.mp4) — a grayscale/white-material rend

Description

Code-as-CoT for Physically-Consistent Video Generation via an Agentic Dual-Engine System

Related repositories

Similar projects matched by category, topics, and programming language.

gnipbao
Featured
gnipbao GitHub avatar

story-to-handdrawn-video

A Remotion-based tool that converts Chinese story text or ordered hand-drawn images into vertical hand-drawn diary-comic animation with handwritten captions, left-to-right reveals, optional page-curl transitions, and silent H.264 output for post-production dubbing.

AI & Machine LearningAI Agents
683
MoonshotAI
Featured
MoonshotAI GitHub avatar

Kimi-K3

Kimi K3 is an open-weight, 2.8T-parameter native multimodal agentic model with a 1M-token context window, designed for frontier coding, knowledge work, and reasoning tasks.

AI & Machine LearningAI Agents
3,348
yetone
Featured
yetone GitHub avatar

kill-ai-slop

Kill AI Slop is a multilingual field guide and agent skill that catalogues 33 common AI-generated design tells with interactive before-after demos, and provides a tool to scan and fix web projects.

AI & Machine LearningAI Agents
805