--- title: 4DAnything emoji: 🦘 colorFrom: gray colorTo: indigo sdk: gradio sdk_version: 6.33.0 app_file: app.py short_description: Feed-forward 4D Gaussian reconstruction from a video python_version: "3.12" startup_duration_timeout: 1h license: other models: - ncc2/4DAnything - facebook/sam-3d-objects - facebook/sam2.1-hiera-large - IDEA-Research/grounding-dino-base - Ruicheng/moge-vitl --- # 4DAnything Demo of **4DAnything: Generalizable Feed-Forward 4D Reconstruction In-The-Wild** ([project page](https://4danything.github.io/), [code](https://github.com/nathalie000/4DAnything), [weights](https://huggingface.co/ncc2/4DAnything)). Pipeline (as in the official `inference/precompute.py → infer.py → visualize.py`): SAM 2.1 video masks (object picked by BiRefNet saliency or Grounding-DINO text) → MoGe per-frame pointmaps (the repo's `--pointmap-model moge` option; the default VGGT-Omega weights are gated) → 4DAnything video backbone (fine-tuned SAM 3D Objects) → 4D decoder (canonical Gaussians + per-frame deformation) → renders. Defaults: 16 frames at stride 3 (≈2.5–3 min of ZeroGPU time); up to 24 frames in Advanced settings. VGGT-Omega is not used, so the scene-placement videos of the reference are not produced. Rendering uses the Inria `diff_gaussian_rasterization` kernels through a small `gsplat.rasterization` shim (`gsplat/`), since gsplat has no prebuilt wheel for the ZeroGPU torch/Blackwell stack. Licenses: 4DAnything code MIT; 4DAnything and SAM 3D Objects weights under the SAM License. Examples: `kangaroo.mp4` from the 4DAnything repository (MIT); `horse.mp4` and `cat.mp4` are trimmed from CC0 clips in [linoyts/repo-to-space-example-videos](https://huggingface.co/datasets/linoyts/repo-to-space-example-videos).