Instructions to use yifei-liu/LoopVGGT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yifei-liu/LoopVGGT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("depth-estimation", model="yifei-liu/LoopVGGT", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("yifei-liu/LoopVGGT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
LoopVGGT: Training-Free Looped Vision Geometry Transformers
Overview
LoopVGGT is a training-free inference framework that replays a contiguous block window of a pretrained vision geometry transformer with damped Euler updates (1/K step size) while preserving the backbone's native computation graph.
This Hugging Face model repository provides the official AutoModel wrapper ([5, 8], K = 4) for VGGT-1B. Because LoopVGGT is strictly training-free, this repository hosts no redistributed weights β calling from_pretrained("yifei-liu/LoopVGGT", trust_remote_code=True) automatically downloads and loads the frozen upstream facebook/VGGT-1B checkpoint at runtime.
Interactive Demo: Try LoopVGGT directly in the browser on the LoopVGGT ZeroGPU Space.
Quickstart
1. Install dependencies
pip install torch torchvision transformers huggingface_hub Pillow einops timm
pip install "git+https://github.com/facebookresearch/vggt.git@a288dd0f14786c93483e45524328726ab7b1b4ce"
2. Run Raw vs. LoopVGGT in a few lines
import torch
from transformers import AutoModel
device = "cuda" if torch.cuda.is_available() else "cpu"
# Automatically fetches frozen weights from facebook/VGGT-1B
model = AutoModel.from_pretrained(
"yifei-liu/LoopVGGT",
trust_remote_code=True,
).to(device).eval()
image_paths = ["view_0.png", "view_1.png", "view_2.png"]
# Paper default: training-free loop over attention pairs [5, 8], K = 4
loop_out = model.predict_images(image_paths, looped=True)
# Unlooped VGGT-1B baseline using the exact same frozen weights
raw_out = model.predict_images(image_paths, looped=False)
# Output fields: depth, depth_conf, world_points, world_points_conf, extrinsics, intrinsics
print("Depth shape:", loop_out["depth"].shape)
print("Extrinsics shape:", loop_out["extrinsics"].shape)
You can also call model(images) directly on a preprocessed (S, 3, H, W) or (B, S, 3, H, W) tensor and customize the loop window on the fly:
preds = model(images, looped=True, start=5, end=8, K=4)
Key Results
Across 5 vision geometry backbones (VGGT, Pi3, Depth Anything 3, MapAnything, VGGT-Ξ©) and 9 benchmarks using one fixed shared configuration per model, training-free looping improves camera pose AUC for all 5 models and 3D reconstruction F1 for all 4 evaluated models.
VGGT-1B ([5, 8], K = 4) Highlights
| Benchmark | Metric | Raw (VGGT-1B) | LoopVGGT ([5, 8], K = 4) |
Gain |
|---|---|---|---|---|
| HiRoom | 3D Reconstruction F1 β | 53.79 | 60.43 | +6.64 |
| HiRoom | Camera Pose AUC@3Β° β | 48.19 | 52.20 | +4.01 |
| ETH3D | 3D Reconstruction F1 β | 62.86 | 64.52 | +1.66 |
| ETH3D | Camera Pose AUC@30Β° β | 81.68 | 82.87 | +1.19 |
| ScanNet++ | 3D Reconstruction F1 β | 67.40 | 68.27 | +0.87 |
| DyCheck (Dynamic) | Depth AbsRel β | 0.0640 | 0.0601 | β6.1% |
| DyCheck (Dynamic) | Depth Ξ΄1.25 β | 93.41 | 94.65 | +1.24 |
ETH3D terrains (42 views, 7.61M RGB points): training-free looping eliminates detached ghost geometry on the wall relief (top) and straightens the corridor geometry and window frame (bottom).
Licensing & Attribution
- The LoopVGGT wrapper code (
configuration_loopvggt.py,modeling_loopvggt.py,config.json) is released under the MIT License. - The underlying pretrained model weights are fetched directly from
facebook/VGGT-1Band remain subject to the upstream VGGT License and Acceptable Use Policy. - Full code, multi-backbone adapters (Pi3, DA3, MapAnything, VGGT-Ξ©), and benchmark reproduction scripts are available at Visionary-Laboratory/LoopVGGT.
- Downloads last month
- 49
Model tree for yifei-liu/LoopVGGT
Base model
facebook/VGGT-1B