Open-source project
nv-tlabs/dvlt avatar
nv-tlabs/dvlt

Déjà View (DVLT): a looping transformer for multi-view 3D reconstruction

Official implementation of Déjà View: Looping Transformers for Multi-View 3D Reconstruction

566 stars30 forksPythonNOASSERTION

At a glance

What is it?
NVIDIA's DVLT turns a set of unordered images into per-pixel rays, depth, confidence and camera poses by looping one shared attention block. Here is what the repository ships, how to get a first prediction out of it, and where it stops being the right tool.
Who is it for?
DVLT fits research groups and reconstruction engineers who want a single trained model whose refinement step count K can be raised at inference, and who are comfortable with a Linux-only, Python 3.11+ stack pinned to torch 2.5.1. Teams that need Windows support, a stable API, or training on datasets other than ScanNet++ should not adopt it yet: the release checklist marks every other training dataset loader as unchecked.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository last received commits 9 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • nv-tlabs/dvlt566 ★ · +126
Star history
Repository2026-09-202026-11-22
nv-tlabs/dvlt440566

126 Stars in the last 63 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The problem DVLT addresses: one model, many views, adjustable compute

Multi-view reconstruction systems usually fix their compute budget at training time. A feed-forward model of a given size consumes a given amount of GPU memory per scene, and the only way to get better numbers is to train a bigger one. DVLT takes a different route. As the README puts it, the model loops "a shared block of frame/global attention with discrete depth indexing," and the number of refinement steps K becomes an inference-time compute knob. The same trained weights can be run cheaply or expensively, and the README claims this matches or outperforms substantially larger feed-forward baselines at a fraction of their parameters.

The input is an unordered set of images. The output is per-pixel rays, depth, confidence and camera poses, so the model does camera estimation and dense geometry in one pass rather than chaining a pose solver to a depth network. That matters for people who have a video or a folder of photos and no calibration: the README's quickstart accepts a directory, a single video, or an explicit list of files, and the demo script accepts mp4, mov and gif.

The audience is narrow on purpose. The pyproject classifiers list "Intended Audience :: Science/Research" and "Development Status :: 3 - Alpha", and the only supported OS classifier is POSIX Linux. This is a research release, not a product.

How the looping attention and depth indexing fit together

The repository layout makes the architecture boundary visible. The model lives under src/dvlt/model/dvlt/, with four configurable ablations named in the README: vanilla, decoupled blocks, no s_out token, and no depth-scaling. Those four switches are the paper's argument made runnable. If you want to know which part of the loop is doing the work, you train or evaluate the ablation rather than reading a claim.

Around that core sit three other layers. Evaluation wrappers exist for five baselines (VGGT, VGGT-Omega, Depth-Anything-3, MapAnything and Pi3), and each wrapper imports the upstream package, which must be installed separately. The training stack is built on accelerate plus Hydra, with optional W&B logging and a Stage-2 fine-tune recipe for the depth-conv head. Visualization uses rerun, which is why rerun-sdk appears in the base dependencies rather than an optional extra.

One detail in the quickstart is worth reading carefully. Predictions come back as lists indexed by sequence: predictions["depths"][0] is (S, H, W) and predictions["world_points"][0] is (S, H, W, 3), where S is the number of views. Cameras are returned as a Cameras object of length S, with camera_to_worlds as (S, 3, 4) in OpenCV [R | t] convention and get_intrinsics_matrices() as (S, 3, 3). Anyone integrating this should check the convention before feeding the extrinsics into an existing viewer, because OpenCV camera-to-world is not what every 3D tool expects by default.

Installing DVLT and running a first prediction

The README points at docs/INSTALL.md for the full instructions and gives a short version. It creates a conda environment on Python 3.12, installs PyTorch 2.5.1 with CUDA 12.4 from the pytorch, nvidia and conda-forge channels, then installs the package in editable mode with the all extra, which pulls in the demos and dev groups.

bash
conda create -n dvlt python=3.12 && conda activate dvlt
conda install pytorch=2.5.1 torchvision pytorch-cuda=12.4 -c pytorch -c nvidia -c conda-forge
pip install -e .[all]

Note the version pins in pyproject.toml: torch==2.5.1, torchvision==0.20.1, numpy==2.4.4, accelerate==1.8.1, hydra-core==1.3.2, huggingface-hub==1.16.4, open3d==0.19.0. These are exact pins, not ranges, so an existing environment with a different torch will conflict. The project requires Python >= 3.11 and the classifiers name 3.11 specifically, while the quickstart uses 3.12.

The first real use is the quickstart script. It loads weights from the string nvidia/dvlt, which the comment says can be a local directory, an HTTPS URL, or a Hugging Face Hub repo id. It then preprocesses images at img_size=504 with patch_size=14 and runs predict under autocast.

python
import torch
from accelerate import Accelerator

from dvlt.model.dvlt.model import DVLT
from dvlt.util.preprocess import load_sequence, preprocess_images

checkpoint_path = "nvidia/dvlt"
input_path = "path/to/scene_dir"

accelerator = Accelerator(mixed_precision="bf16")
model = DVLT(img_size=504)
model.load_pretrained(checkpoint_path, strict=True)
model.setup_test(accelerator)

_, frames = load_sequence(input_path)
batch = preprocess_images(frames, img_size=504, patch_size=14, device=accelerator.device)

with torch.no_grad(), accelerator.autocast():
    predictions = model.predict(batch, accelerator)

The README says load_sequence accepts a directory, a single video, or an explicit list of files, and shows sorted(glob("path/to/scene_dir/*.png")) as the explicit-list form. After predict returns, you read predictions["cameras"][0], predictions["depths"][0] and predictions["world_points"][0]. The strict=True argument on load_pretrained is worth keeping during a first run: it fails loudly on a key mismatch instead of silently loading a partial checkpoint.

If you would rather not write code, the Gradio demo launches on http://localhost:7860 with DVLT preselected, and the same script has an offline mode that skips Gradio and writes a .glb plus a .rrd per sequence under demo_outputs/<sequence_name>/.

bash
python -m dvlt.scripts.gradio_demo

python -m dvlt.scripts.gradio_demo --offline \
    --input /path/to/scene_dir \
    --input /path/to/clip.mp4 \
    --models dvlt

The --input flag may be repeated to process several sequences in one run, and --models takes a comma-separated list of config names from the curated registry, or all to run every registered model. The dropdown and the registry include the baseline wrappers, so selecting VGGT, VGGT-Omega, DA3, Pi3 or MapAnything requires that upstream package to be installed first.

Where DVLT is the wrong tool

The release checklist is the clearest limitation. Inference code, model weights, evaluation code and the ScanNet++ training dataset loader are checked. "other training dataset loaders" is unchecked. If your training data is not ScanNet++, the repository does not give you a loader, and you would be writing the data path yourself against a training stack you have not seen run.

The evaluation numbers set a second boundary. On the README's DVLT reference table, 7Scenes shows a Pose AUC@3 of 0.1393 while AUC@30 is 0.8172. A low AUC@3 with a high AUC@30 means a large share of poses land in the loose threshold but not the tight one. If your application needs tight pose accuracy on indoor scenes of that character, this model is not the tool, and no amount of raising K is documented as fixing it.

NuScenes is the other weak spot: Depth AbsRel 0.0673 and Pose AUC@3 0.4340, against DTU's 0.0093 and 0.8319. The README does not discuss why, and it does not document failure modes, calibration requirements, or what happens with very few views. Those are real gaps for anyone planning production use.

Finally, the packaging is Linux-only by classifier, the version is 0.0.1, and there are no published GitHub releases. Treat the API as movable. Anything you build on load_pretrained or predict should be wrapped so a signature change costs you one adapter file, not a rewrite.

DVLT against VGGT and the other bundled baselines

The most direct alternative is VGGT, and the repository ships a wrapper for it, so the comparison is not abstract. VGGT is a feed-forward reconstruction model: it processes the view set once and produces geometry and poses from that single forward pass. DVLT is recurrent, looping the same attention block K times over the views, with discrete depth indexing inside the loop. The practical difference is the compute knob. With VGGT you get the accuracy that model size gives you. With DVLT the README's claim is that you can trade inference steps for accuracy on fixed weights, and that this reaches or beats much larger feed-forward baselines with fewer parameters.

The cost of that design is latency that scales with K and a training procedure tied to the loop. The repository also wraps VGGT-Omega, Depth-Anything-3, MapAnything and Pi3, which is unusual and useful: it means you can run the same evaluation config across all six models rather than trusting a table in a paper. Each wrapper imports the upstream package, installed separately per docs/INSTALL.md, so a side-by-side comparison means managing several dependency trees. The pinned versions in pyproject.toml do not cover those upstream packages, and conflicts between them are your problem, not the repository's.

Maintenance, licensing and what an upgrade costs

The last push to the repository was on 2026-06-01. It is not archived. That is a recent enough state that the code has not been abandoned, but the repository has no published GitHub releases, so there is no version-to-version upgrade path to plan against. The package version is 0.0.1 and the classifier says Alpha.

Upgrade cost is dominated by the exact pins. torch==2.5.1, torchvision==0.20.1, numpy==2.4.4 and accelerate==1.8.1 are fixed, and the quickstart installs CUDA 12.4 wheels. Moving any of those forward means retesting the whole stack, including the baseline wrappers and the open3d and rerun paths. Because the project installs with pip install -e ., a local checkout is the working copy, so a git pull is an upgrade.

Licensing needs care here. The metadata reports the license as NOASSERTION, pyproject.toml declares license = { file = "LICENSE" } and the Apache Software License classifier, and the repository root contains both a LICENSE file and directories named LICENSES/ and a THIRD_PARTY_LICENSES.md. That combination means the top-level terms and the third-party terms are tracked separately, which is common when vendored or adapted code is involved. The model weights are distributed separately on Hugging Face under nvidia/dvlt, and their terms are not described in the README. Read the LICENSE file, the LICENSES/ directory and THIRD_PARTY_LICENSES.md before commercial use, and get your own legal review rather than treating the Apache classifier as the whole answer.

Editorial conclusion

DVLT fits research groups and reconstruction engineers who want a single trained model whose refinement step count K can be raised at inference, and who are comfortable with a Linux-only, Python 3.11+ stack pinned to torch 2.5.1. Teams that need Windows support, a stable API, or training on datasets other than ScanNet++ should not adopt it yet: the release checklist marks every other training dataset loader as unchecked. Verify first that your evaluation target is one of DTU, ETH3D, 7Scenes, ScanNet++ or NuScenes, and that you can accept the 7Scenes pose AUC@3 of 0.1393 before you build a pipeline around it.

Frequently asked questions

What does DVLT need to run a first prediction?

A conda environment on Python 3.12 with PyTorch 2.5.1 and CUDA 12.4, the package installed with pip install -e .[all], and weights loaded from the string nvidia/dvlt, which the README says may be a local directory, an HTTPS URL, or a Hugging Face Hub repo id.

Does DVLT train on datasets other than ScanNet++?

Not yet. The release checklist marks the ScanNet++ training dataset loader as done and "other training dataset loaders" as unchecked, so the repository supplies no loader for anything else.

What are the refinement steps K in DVLT?

K is the number of times the shared frame/global attention block is looped at inference. The README describes it as an inference-time compute knob: the model is trained once and K can be changed when you run it.

Can DVLT run on Windows or macOS?

The pyproject classifiers list only "Operating System :: POSIX :: Linux", and the install instructions use conda with pytorch-cuda=12.4. Nothing in the README describes a Windows or macOS path.

What output format does the DVLT demo produce?

The Gradio demo runs a browser UI on http://localhost:7860. Its offline mode skips Gradio and writes a .glb and a .rrd per sequence and model under demo_outputs/<sequence_name>/.

Official sources

  1. Issues
  2. nv-tlabs/dvlt on GitHub
  3. README
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/nv-tlabs-dvlt.svg)](https://hysenlabs.com/projects/nv-tlabs-dvlt)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/nv-tlabs-dvlt.svg)](https://hysenlabs.com/projects/nv-tlabs-dvlt)

Was this useful?