provide details to install vggt as a package

This commit is contained in:
jianyuan
2025-03-23 20:22:43 +00:00
parent 01e5d11e2a
commit e35b89ac6a
2 changed files with 45 additions and 21 deletions
+1 -21
View File
@@ -38,27 +38,7 @@ cd vggt
pip install -r requirements.txt
```
<details>
<summary>Alternatively, assuming torch and torchvision have been installed, you can use pip, pixi or uv to <b>install VGGT as a package (Click to expand)</b></summary>
### Install with pip
```bash
pip install -e .
```
### Install and run with pixi
Download [pixi here](https://pixi.sh)
```bash
pixi run -e python demo_gradio.py
```
### Install and run with uv
Download [uv here](https://docs.astral.sh/uv/getting-started/installation/)
```bash
uv run --extra demo demo_gradio.py
```
</details>
Alternatively, you can <b>install VGGT as a package</b>. <a href="docs/installation.md">Click here</a> for details.
Now, try the model with just a few lines of code:
+44
View File
@@ -0,0 +1,44 @@
# Alternative Installation Methods
This document explains how to install VGGT as a package using different package managers.
## Prerequisites
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:
```bash
pip install torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cu121
```
## Installation Options
### Install with pip
The simplest way to install VGGT is using pip:
```bash
pip install -e .
```
### Install and run with pixi
[Pixi](https://pixi.sh) is a package management tool for creating reproducible environments.
1. First, [download and install pixi](https://pixi.sh/latest/get_started/)
2. Then run:
```bash
pixi run -e python demo_gradio.py
```
### Install and run with uv
[uv](https://docs.astral.sh/uv/) is a fast Python package installer and resolver.
1. First, [install uv](https://docs.astral.sh/uv/getting-started/installation/)
2. Then run:
```bash
uv run --extra demo demo_gradio.py
```