update pyproject and readme

This commit is contained in:
jianyuan
2025-03-23 20:07:49 +00:00
parent 4e321b8a8c
commit 4d9710fb2e
4 changed files with 37 additions and 11 deletions
+9 -2
View File
@@ -35,12 +35,17 @@ First, clone this repository to your local machine, and install the dependencies
```bash
git clone git@github.com:facebookresearch/vggt.git
cd vggt
pip install -r requirements.txt
```
<details>
<summary>Alternatively, you can install VGGT as a package via pip, pixi or uv (Click to expand)</summary>
### Install with pip
```bash
pip install -e .
```
### Install and run with pixi
Download [pixi here](https://pixi.sh)
@@ -53,6 +58,8 @@ Download [uv here](https://docs.astral.sh/uv/getting-started/installation/)
```bash
uv run --extra demo demo_gradio.py
```
</details>
Now, try the model with just a few lines of code:
@@ -243,4 +250,4 @@ Thanks to these great repositories: [PoseDiffusion](https://github.com/facebookr
## License
See the [LICENSE](./LICENSE.txt) file for details about the license under which this code is made available.
See the [LICENSE](./LICENSE.txt) file for details about the license under which this code is made available.
+10 -9
View File
@@ -1,17 +1,15 @@
[project]
authors = [{ name = "Jianyuan Wang", email = "jianyuan@robots.ox.ac.uk" }]
authors = [{name = "Jianyuan Wang", email = "jianyuan@robots.ox.ac.uk"}]
dependencies = [
"torch>=2.3.1",
"torchvision>=0.18.1",
"numpy<2",
"numpy==1.26.1",
"Pillow",
"huggingface_hub",
"einops",
"safetensors",
]
name = "vggt"
requires-python = ">= 3.11"
version = "0.1.0"
requires-python = ">= 3.8"
version = "0.0.1"
[project.optional-dependencies]
demo = [
@@ -28,13 +26,16 @@ demo = [
"matplotlib",
]
# Using setuptools as the build backend
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.hatch.build.targets.wheel]
# setuptools configuration
[tool.setuptools]
packages = ["vggt"]
# Pixi configuration
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64"]
+7
View File
@@ -0,0 +1,7 @@
torch==2.3.1
torchvision==0.18.1
numpy==1.26.1
Pillow
huggingface_hub
einops
safetensors
+11
View File
@@ -0,0 +1,11 @@
gradio==5.17.1
viser==0.2.23
tqdm
hydra-core
omegaconf
opencv-python
scipy
onnxruntime
requests
trimesh
matplotlib