CameraCtrl

Method overview: a camera encoder injects trajectory features into a pretrained video diffusion backbone.

CameraCtrl from The Chinese University of Hong Kong / Shanghai AI Laboratory: world, video, and 2 more tasks; Verified.

CameraCtrl pioneered plug-and-play camera control for text-to-video diffusion: it trains a camera encoder over Plücker embeddings so trajectories can steer generation without retraining the base model. WorldFoundry runs it in-tree following the official trajectory text-to-video demo: a text prompt and a camera trajectory file produce a video.

Official paper teaser: CameraCtrl steers camera trajectories for general and personalized text-to-video.
Official paper teaser: CameraCtrl steers camera trajectories for general and personalized text-to-video.
Method overview: a camera encoder injects trajectory features into a pretrained video diffusion backbone.
Method overview: a camera encoder injects trajectory features into a pretrained video diffusion backbone.

Paper: arXiv 2404.02101.

Project page: hehao13.github.io/projects-CameraCtrl. Code: hehao13/CameraCtrl.

Weights: hehao13/CameraCtrl. License: MIT.

This is not AC3D (CogVideoX ControlNet) and not ATI (Wan2.1 point tracks).

Build your run

Pipeline
CameraCtrlPipelineworldfoundry.pipelines.component_pipelines
TaskTrajectory Video trajectory-video
Environmentworldfoundry-unified-cu128
DeviceCUDA 11.3
Runnerworldfoundry.pipeline
Loadingfrom_pretrained
Invocationnative_or_standard_invocation
wf run \
  cameractrl \
  --pipeline.task-profile trajectory-video \
  --json

What it is for

Use cameractrl when the viewpoint must follow a given camera path.

Per the publication (arXiv 2404.02101), camera poses are encoded as Plücker embeddings and injected through a trainable camera encoder attached to a frozen video diffusion base (AnimateDiff in the official release). It is published by The Chinese University of Hong Kong / Shanghai AI Laboratory.

Tasks: world, video, camera control, and world model. Output modalities: video.

Suggested benchmarks: CameraBench (The standard camera-trajectory adherence evaluation).

Runtime contract

Inputs prompt and trajectory-file (bundled samples are used when omitted); options frames, fps, height, width, steps, guidance-scale, and 3 more; artifacts cameractrl.mp4.

CLI task profiles: trajectory-video. WorldFoundry binds CameraCtrlPipeline.

Family status: Verified.

Defaults for trajectory-video: frames=16, fps=8, height=256, width=384, guidance_scale=14.0, seed=42.

The runner follows the official demo trajectory contract — supply a camera trajectory file and a text prompt.

Running in WorldFoundry

Generate a camera-controlled clip with wf run cameractrl --pipeline.task-profile trajectory-video.

It runs in the unified environment worldfoundry-unified-cu128 (Python 3.11, CUDA 11.3).

Weights: hehao13/CameraCtrl. Prepare the environment and check local assets with bash scripts/inference/prepare_model_infer.sh cameractrl. Add --download to fetch missing public checkpoints.