Any4D: Unified Feed-Forward Metric 4D Reconstruction
Stay tuned for updates
git clone https://github.com/Any-4D/Any4D.git
cd Any4D
# Create and activate conda environment
conda create -n any4d python=3.12 -y
conda activate any4d
# Optional: Install torch, torchvision & torchaudio specific to your system
# Install Any4D
pip install -e .
# For all optional dependencies
# See pyproject.toml for more details
pip install -e ".[all]"
pre-commit installNote that we don't pin a specific version of PyTorch or CUDA in our requirements. Please feel free to install PyTorch based on your specific system.
We release the pre-trained Any4D model checkpoint on Hugging Face and Google Drive:
# Option 1: Hugging Face
mkdir -p checkpoints
wget -P checkpoints https://huggingface.co/airlabshare/any4d-checkpoint/resolve/main/any4d_4v_combined.pth# Option 2: Google Drive
mkdir -p checkpoints
cd checkpoints
gdown --folder https://drive.google.com/drive/folders/1SOWr61vuv_bGtow6diAiWpIoUT50qSpkFor quick example inference, you can run the following command:
# Terminal 1: Start the Rerun server
rerun serve --port 9877
# Terminal 2: Run Any4D demo
python scripts/demo_inference.py --video_images_folder_path assets/stroller --viz --port 9877We provide multiple examples at assets/example_images. Please look at Rerun Demo for more control over visualization.
We provide multiple interactive demos to try out Any4D!
Try our online demo without installation: Hugging Face Demo
We provide a script to launch our Gradio app. The interface and GUI allows you to upload image sequences/videos, run 4D reconstruction and interactively view them. You can launch this using:
# Install requirements for the app
pip install -e ".[gradio]"
# Launch app locally
python scripts/any4d_gradio.pyWe provide a demo script for interactive 4D visualization of metric reconstruction results using Rerun.
…Optionally, if rerun is installed locally, local rerun viewer can be spawned using: rerun --connect rerun+http://127.0.0.1:2004/proxy.
This repository is licensed under an open-source Apache 2.0 license.
We thank the following projects for their open-source code: MapAnything, DUSt3R, MASt3R, MoGe, VGGT, and DINOv2.
If you find our repository useful, please consider giving it a star ⭐ and citing our paper in your work:
@article{karhade2025any4d,
title={Any4D: Unified feed-forward metric 4d reconstruction},
author={Karhade, Jay and Keetha, Nikhil and Zhang, Yuchen and Gupta, Tanisha and Sharma, Akash and Scherer, Sebastian and Ramanan, Deva},
journal={arXiv preprint arXiv:2512.10935},
year={2025}
}No open issues yet, or sync has not completed.