Steller-Chen/VideoRSI-code
Machine LearningCode-to-video system that writes, verifies, and renders 3D scene programs before generating realistic video.
Overview
VideoRSI is a research pipeline that turns a text prompt into a video through an executable 3D scene. A director model (a 27B model built on Qwen3.8-27B) writes a Three.js scene program; the program is rendered into a proxy video that fixes geometry, motion and camera; a video model then renders the final realistic video from the proxy plus a reference image. The paper and code are released together, with the director weights promised on Hugging Face (arXiv paper, project page).
The distinguishing idea is verification. Instead of judging only final frames, VideoRSI steps the scene program in 4D, tracks objects and the camera over time, and checks geometric plausibility, camera control, motion readability and spatial grounding. Scenes that pass are used to fine-tune the director and evolve its harness, so mistakes like a wheel clipping through a bridge can be caught at the program level.
It targets researchers and engineers working on controllable, code-driven video generation, not end users who just want a text-to-video tool.
Quick start
Requirements: Linux x86_64 with NVIDIA GPUs, Python 3.10, and an NVIDIA driver compatible with CUDA 12.6. Create the main environment and install dependencies per the installation section (README):
conda create -n videorsi python=3.10 -y
conda activate videorsi
conda install -c conda-forge "ffmpeg>=6" "nodejs>=22" -y
python -m pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 \
--index-url https://download.pytorch.org/whl/cu126
python -m pip install -r requirements.txt
python -m playwright install --with-deps chromium
npm install -g @openai/codex@0.163.0
Weights are not shipped; plan disk usage of about 55 GB for the director, 210 GB for MiniMax-H3 and 55 GB for Qwen-Image-Edit. Serve the director in a separate vLLM environment, then run the two stages:
- Generate the scene program and proxy video:
python -m inference.generate_program(with the director served at127.0.0.1:8000). - Make the reference image with
python -m inference.generate_reference_local, then generate the final video withpython -m inference.generate_video(pipeline steps).
If you only want the second stage, the examples/ folders ship scene programs, proxy videos, reference images and prompts, so a video can be generated with MiniMax-H3 alone. The director weights were still marked as forthcoming at release time, so step 1 cannot be run until they appear.
Usage constraints
- Step 1 runs an agent that executes shell commands; by default Codex runs without approvals or a sandbox. Run it in a container or VM, or use
--sandbox workspace-writeto confine writes. - Proxy videos must be exactly 960×544, 124 frames, 24 FPS, H.264, yuv420p and audio-free; inputs are checked with
ffprobebefore models load. - The video scripts refuse to overwrite existing outputs, so choose new output paths.
- Model weights carry their own licenses, separate from the Apache-2.0 code; example assets are CC BY 4.0.
- Generation quality depends on the proxy video: higher
--keep-stepsfollows the proxy more closely, lower values give the video model more freedom.
HotRepo's take
VideoRSI entered HotRepo's new-project board for Python with 100 stars and 2 forks in its first recorded growth window, from 2026-11-30 to 2026-12-01. That is a small sample drawn from a single snapshot, so it supports attention on release day rather than a trend. The technical bet worth watching is the verifiable self-improvement loop: the paper claims the 27B director approaches GPT-6.1 on camera control and scene plausibility, but those are comparisons from the authors' examples, and the absent director weights mean readers cannot yet reproduce step 1.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.