nathalie000/4DAnything
arXiv:2612.02443 ↗Local, feed-forward 4D object reconstruction from monocular video
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
4DAnything is a staged local CLI for reconstructing one moving object from a monocular clip. inference/precompute.py writes masks, pointmaps, and camera poses to a clip-specific directory. inference/infer.py consumes those inputs and reconstructs the object over the whole clip in one forward pass. inference/visualize.py renders the result with gsplat. The artifact directory is the integration boundary: callers can inspect segmentation before launching reconstruction or provide their own masks upstream.
SAM 3D Objects supplies the reconstruction backbone and Gaussian decoder. TRELLIS provides sparse structured latents, and PAD3R supplies node deformation and skinning. The Python package lives under anything4d/, with JSON configs included as package data. The GPU stack pins PyTorch 2.6.0, torchvision 0.21.0, xformers, CUDA 12.4 builds of spconv and PyTorch3D, and gsplat. The CLI and its intermediate files, rather than a service API or plugin interface, are the practical entry points for integration.
Key Capabilities & Differentiators
The input is a monocular video, with one target object per run. By default, BiRefNet selects the salient object in the middle frame and SAM 2.1 tracks its mask across the clip. --prompt uses Grounding-DINO to locate a named target; --box and --point allow explicit selection, and --masks accepts masks from another segmentation workflow. Inspecting precompute/masks/ is the quickest way to catch incorrect target selection before reconstruction.
VGGT-Omega estimates pointmaps and camera poses jointly for the clip to maintain consistent depth scale across frames. MoGe is available as an optional source of per-frame pointmaps. The output is a reconstruction of the target as it moves or deforms over time, not a joint reconstruction of all visible objects. The visualizer renders the reconstruction from the input camera, overlays it on the original video, and produces an orbit view. Comparing the overlay with the orbit helps distinguish alignment errors from geometry problems visible at novel viewpoints.
Trade-offs & Limitations
Use SAM 3D Objects directly if you only need a static reconstruction from one image, or VGGT-Omega directly if the deliverables are pointmaps and camera poses. 4DAnything is worth the extra dependencies when you need an object representation that changes over time and can be rendered from novel views. Its one-object-per-run design is a poor fit for joint scene reconstruction, and work grows with the number of objects you select because each needs its own run.
The single forward pass describes reconstruction, not the full cost of segmentation, geometry estimation, and rendering. The GPU memory requirement is at least 24 GB for 32 frames and about 48 GB for 50 frames, so validate at your target clip length rather than extrapolating from a short test. Licensing is a separate adoption constraint: the code is MIT, but the upstream weights have independent terms, including the FAIR Noncommercial Research License for VGGT-Omega. Local execution does not turn those weights into a commercially cleared stack.
Hardware & Deployment Guide
The documented deployment baseline is Linux, an NVIDIA GPU, Python 3.11, and CUDA 12.4. The package metadata allows Python 3.10 or newer, but Python 3.11 is the documented setup. Initialize the recursive Git submodules, install requirements.txt, and install the package in editable mode. The requirements pin Git revisions of VGGT-Omega and MoGe and use additional wheel indexes for the CUDA stack. Keep the Torch and CUDA wheel versions aligned rather than upgrading one component in isolation.
Execution is local, but initial setup requires downloading dependencies and checkpoints. Obtain Hugging Face access to SAM 3D Objects and VGGT-Omega, authenticate, and run scripts/download_checkpoints.sh; VGGT-Omega downloads on first use. The clip reconstruction checkpoints are ss.pt, slat.pt, and decoder.pt under checkpoints/4danything/. Inference code and weights are available without a tagged GitHub release. Record the repository revision and checkpoint files together for reproducible deployments.
precompute.py, infer.py, and visualize.py exchange artifacts through one output directory per clip.Research and prototyping teams with Linux NVIDIA GPU capacity that need to reconstruct one moving object from a short monocular clip and inspect it from novel viewpoints.
You need joint multi-object reconstruction, cannot meet the GPU memory requirements, or need a commercial deployment without resolving upstream weight licenses.
Quick Start & Installation
git clone https://github.com/nathalie000/4DAnything.git cd 4DAnything git submodule update --init --recursive conda create -n 4danything python=3.11 -y && conda activate 4danything pip install -r requirements.txt pip install -e .
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| 4DAnything ★ | 159 | +14 | Python | MIT | Local, feed-forward 4D object reconstruction from monocular video |
| ComfyUI | 149.9k | +945 | Python | GPL-3.0 | A node-graph engine for building and running multimodal AI workflows locally |
| OpenMontage | 85.4k | +1.5k | Python | AGPL-3.0 | Agent-led video production from brief to finished edit |
| autoclip | 21.7k | +4k | Python | MIT | Local-first AI turns long videos into captioned clips via desktop, CLI, and MCP. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/nathalie000/4DAnything.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about 4DAnything
How do I integrate 4DAnything into an existing video pipeline?
inference/precompute.py with --input, then pass the resulting clip directory via --out to inference/infer.py and inference/visualize.py. The stages communicate through that directory. Inspect precompute/masks/ before reconstruction, and use --masks at the precompute stage if your pipeline already supplies masks.What GPU should I provision, and what does a single forward pass imply for runtime?
Does the MIT license let me self-host the full pipeline commercially?
When should I use SAM 3D Objects or VGGT-Omega directly instead?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy