You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Ani4D: Animatable 4D Mesh Reconstruction from Monocular Video

Angel Y. He, Andrea Vedaldi, Zeren Jiang · Visual Geometry Group, University of Oxford

Project page · Code · AniBench · AniAct

Ani4D animates a rigged 3D asset from a monocular video. It takes the asset in its first-frame pose (mesh, skeleton and skinning weights) and a 16-frame video. It works in three steps:

  1. A two-stage temporal flow model, built on the pretrained rigged image-to-3D model AniGen, generates every frame's posed geometry and skeleton.
  2. A deterministic read-out turns the posed skeleton into joint transformations on the asset's own kinematic tree.
  3. Linear blend skinning poses the asset's mesh.

When no asset is given, TRELLIS.2 generates the first frame's mesh and SkinTokens rigs it.

Files

file stage trained parameters
stage1.safetensors stage 1: every frame's surface and skeleton voxels, from AniGen's sparse-structure flow with window-and-anchor temporal attention 201.6M
stage2.safetensors stage 2: every frame's structured latents and the root's motion, from AniGen's structured-latent flow 339.7M

Each file holds the stage's averaged (EMA) trained weights in float32, with the model settings inference reads as metadata. The remaining weights of both models come from AniGen's release, so the code needs AniGen's checkpoints as well.

Usage

With the Ani4D code installed (pip install -e . in its repository):

hf download anhe7/Ani4D --local-dir weights                    # stage1.safetensors, stage2.safetensors
hf download VAST-AI/AniGen --local-dir weights/anigen \
    --include "ckpts/anigen/ss_flow_duet/*" "ckpts/anigen/ss_dae/*" "ckpts/anigen/slat_flow_auto/*" \
              "ckpts/anigen/slat_dae/*" "ckpts/dinov2/*"
export ANI4D_WEIGHTS=weights ANIGEN_CKPTS=weights/anigen/ckpts

# AniBench (anhe7/AniBench): 50 clips, cameras 0, 4, 8, 11
hf download anhe7/AniBench --repo-type dataset --local-dir data/anibench
export ANI4D_CLIPS=data/anibench/clips ANI4D_ENCODES=data/anibench/encodes
python -m ani4d.infer --clips @data/anibench/anibench.txt --views 0,4,8,11 --out outputs/ani4d

Each window is written as <out>/<clip>[_v<camera>]/frame_<t>.obj: t is the clip frame, and the mesh is in the clip's own units and frame. The defaults are the paper's settings:

  • 25 Euler steps per stage.
  • Stage 1: two draws with classifier-free guidance 3. Their decoded occupancy logits are averaged before the threshold.
  • Stage 2: four samples without guidance. The articulation is read from the first sample, and the root's translation is averaged over the four.

Inference takes about 10 s per frame on one AMD MI355X. A video without an asset goes through the code's video-only front end (python -m ani4d.video_only.pipeline). On NVIDIA GPUs, AniGen's sparse layers use spconv and flash-attn when installed; elsewhere they run in plain PyTorch.

Training

Both stages start from AniGen's released weights and train on 16-frame windows:

  • Data: the collected corpus's training clips (Truebones Zoo, Objaverse and Objaverse-XL animations) for both stages. Stage 1 also trains on the agent-generated AniAct clips.
  • Cameras: stage 1 sees each window through all 16 cameras, stage 2 through the front camera and one other camera.
  • Optimisation: batch 128, AdamW with gradient clipping at 1, bf16 autocast with fp32 weights, and a 0.999 moving average of the weights.
  • Hardware: AMD MI355X GPUs.

Results

On AniBench with ground-truth first-frame assets, averaged over the 50 clips and four viewpoints:

CD-3D ↓ CD-4D ↓ CD-M ↓ MPJPE ↓ PSNR ↑ SSIM ↑ LPIPS ↓ CLIP ↑ FVD ↓
Ani4D (feed-forward) 0.0226 0.0408 0.0928 0.0364 19.48 0.9060 0.0758 0.9801 365.1
Ani4D + shape optimisation 0.0198 0.0378 0.0864 0.0355 19.75 0.9088 0.0711 0.9823 333.6

Reproducibility:

  • Stage 1 reproduces the paper's runs bit for bit on the GPU type the paper used.
  • Stage 2 is not bit-reproducible from run to run: AniGen's sparse downsampling averages with atomic additions. On most windows, reruns change the meshes by 1e-4 to 1e-2 of the mesh size at the largest vertex.
  • Ambiguous windows: where the motion is ambiguous from the camera, the differences can grow over the window. On one tested window seen from above, reruns differed by up to 0.3 of the mesh size, with the same accuracy against the ground truth.

Licence

The weights are released under the MIT licence, like the code. They are fine-tuned from AniGen's released weights (MIT).

Citation

@article{he2026ani4d,
  title   = {Ani4D: Animatable 4D Mesh Reconstruction from Monocular Video},
  author  = {He, Angel Y. and Vedaldi, Andrea and Jiang, Zeren},
  journal = {arXiv preprint},
  year    = {2026}
}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for anhe7/Ani4D

Finetuned
VAST-AI/AniGen
Finetuned
(1)
this model