Introducing Code Video Model 🎬
@guocheng_qian1.1K followers
41,206 views
38 Comments
Comments from the original post on X (Twitter)

@guocheng_qian
[1/7] 🧠 Why code? Video models keep getting better visually, but two gaps remain: physics and precise control. A thrown ball may hover, a pendulum drift off-period, or a collision look plausible but break physical laws. Prompts and ControlNet-style guidance still struggle to specify every actor’s pose, object’s size/color, scene layout, motion path, and camera timing. Executable programs make these constraints explicit and testable before generation.
7 likes

@guocheng_qian
[2/7] 🎬 Borrowing from film previs: a coding agent turns a prompt into an executable Three.js scene. Layout, object motion, camera trajectories, and event timing live in one editable program. The rendered proxy video provides the spatiotemporal plan; a reference image sets the target appearance. The video model adds geometry details, materials, and lighting. Code defines how the scene evolves.
7 likes

@guocheng_qian
[3/7] 💻 Code → previs → inspect → revise → video. The agent edits objects, parameters, and event logic, then checks the updated proxy before generating the final video. Here, redirecting the robot by changing route waypoints—while preserving the rest of the scene—is as simple as one line code change. Once the program is ready, proxy rendering takes under a minute, making shot design quick to validate and iterate.
4 likes

@guocheng_qian
[4/7] 🔍 The challenge: a useful proxy is visually crude. Feed it directly into a reference-to-video model and its low-poly geometry and simplified materials can dominate the output. We want its layout and motion, while letting the reference image and pretrained model supply the final appearance. How can conditioning separate the two?
4 likes

@guocheng_qian
[5/7] 📊 Our key observations with MiniMax-H3 frozen: • The pathways are complementary: Qwen-VL has a stronger effect on appearance; VAE contributes more to motion and structure. Dual-path works best overall. • Proxy conditioning matters most in roughly the first 25% of denoising. Early structural guidance leaves a lasting trace in Query features after the proxy is removed. • Swapping conditions reveals a clear division: appearance mainly follows the reference image; layout, viewpoint, and geometry mainly follow Proxy-VAE. Remove the proxy too early and structure slips; keep it too long and the low-poly look persists.
2 likes

@guocheng_qian
[6/7] ⚙️ Our solution: training-free, stage-wise conditioning. Keep the full proxy and both native conditioning pathways during early denoising to establish structure and motion. Then remove the proxy while text, the reference image, and model priors continue refining appearance. Early guidance persists without carrying the synthetic look through every step. The video model stays frozen; no extra control module is trained.
3 likes

@guocheng_qian
[7/7] 🚀 One code-driven workflow, many applications: Anime, bullet time, gaming, scene editing, robotics and trajectory control, architectural and product cinematography, physics-grounded motion, and 3D/4D reconstruction. From freezing the action while the camera keeps moving to editing an object’s route, it starts with an executable scene. More demos 👇
2 likes

@NTU_chenyiwen
@raywzy1 Fantastic work! So happy that we share the same insight. Code will be the future prompt of visual generation.
4 likes

@guocheng_qian
@raywzy1 🛫

@vincent_jh_cho
@jon_barron @raywzy1 Great direction! Ultimately we should detach intelligence from video generation.
2 likes

@LongTonyLian
@raywzy1 Great work! It really reminds me of LLM-grounded Video Diffusion Models that my team released ~3 years ago. Seems like an advanced version of it with code as the grounding proxy! Congrats!
2 likes

@_bryantmejia
@raywzy1 Well done!! Looking forward to testing this out.
2 likes

@ZavierZWWang
@raywzy1 Congratulations @raywzy1 ! Amazing work!
2 likes

@whataboutfranks
@raywzy1 @grok wtf is this
2 likes

@ottleyai
@raywzy1 AI video is slowly turning into something developers can actually debug.
2 likes

@guocheng_qian
@raywzy1 Yeah pain point

@qisun01
@raywzy1 awesome work led by @raywzy1 !!!
2 likes

@noobpsyborg42
@raywzy1 Yes yes this is what I have been looking for. Making a video where the outcome of future scenes are conditioned and controlled by prompts and code depending on the past scenes.
2 likes

@Benogju
@raywzy1 Building the set once and planning each camera angle from it could make multi-shot scenes so much easier
2 likes

@angrypenguinPNG
@raywzy1 incredible!
2 likes
















