This document explains how to install VGGT as a package using different package managers.
Before installing VGGT as a package, you need to install PyTorch and torchvision. We don't list these as dependencies to avoid CUDA version mismatches. Install them first, with an example as:
# install pytorch 2.3.1 with cuda 12.1
pip install torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cu121
The simplest way to install VGGT is using pip:
pip install -e .
Pixi is a package management tool for creating reproducible environments.
- First, download and install pixi
- Then run:
pixi run -e python demo_gradio.py
uv is a fast Python package installer and resolver.
- First, install uv
- Then run:
uv run --extra demo demo_gradio.py