Spaces:
Running on Zero
Running on Zero
Upload pyproject.toml with huggingface_hub
Browse files- pyproject.toml +129 -0
pyproject.toml
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[build-system]
|
| 2 |
+
requires = ["setuptools>=61.0"]
|
| 3 |
+
build-backend = "setuptools.build_meta"
|
| 4 |
+
|
| 5 |
+
[project]
|
| 6 |
+
name = "mini-dust3r"
|
| 7 |
+
version = "0.1.3"
|
| 8 |
+
description = "Miniature version of dust3r, focused on inference"
|
| 9 |
+
requires-python = ">=3.10.0"
|
| 10 |
+
license = { file = "LICENSE" }
|
| 11 |
+
classifiers = [
|
| 12 |
+
"Development Status :: 3 - Alpha",
|
| 13 |
+
"Programming Language :: Python",
|
| 14 |
+
]
|
| 15 |
+
readme = "README.md"
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
dependencies = [
|
| 19 |
+
"torch>=2.3.1",
|
| 20 |
+
"torchvision>=0.18.1",
|
| 21 |
+
"opencv-python>=4.10.0",
|
| 22 |
+
"rerun-sdk>=0.17.0",
|
| 23 |
+
"tqdm>=4.66.5",
|
| 24 |
+
"trimesh>=4.4.4",
|
| 25 |
+
"jaxtyping>=0.2.33",
|
| 26 |
+
"beartype>=0.18.5",
|
| 27 |
+
"einops>=0.8.0",
|
| 28 |
+
"gradio>=4.41.0,<5",
|
| 29 |
+
"scipy>=1.14.0",
|
| 30 |
+
# # not in conda dependencies
|
| 31 |
+
"roma>=1.5",
|
| 32 |
+
"safetensors>=0.4.3",
|
| 33 |
+
"hf-transfer>=0.1.6",
|
| 34 |
+
"gradio-rerun>=0.0.8",
|
| 35 |
+
"pillow-heif>=0.20.0,<0.21",
|
| 36 |
+
"build>=1.2.2.post1,<2",
|
| 37 |
+
]
|
| 38 |
+
|
| 39 |
+
[tool.setuptools.packages.find]
|
| 40 |
+
include = ["mini_dust3r*"]
|
| 41 |
+
|
| 42 |
+
[tool.pixi.project]
|
| 43 |
+
name = "mini-dust3r"
|
| 44 |
+
authors = ["pablovela5620 <pablovela5620@gmail.com>"]
|
| 45 |
+
channels = ["nvidia", "nvidia/label/cuda-12.1.0", "conda-forge", "pytorch"]
|
| 46 |
+
platforms = ["linux-64", "osx-arm64", "win-64"]
|
| 47 |
+
|
| 48 |
+
[tool.pixi.system-requirements]
|
| 49 |
+
libc = { family = "glibc", version = "2.31" }
|
| 50 |
+
|
| 51 |
+
[tool.pixi.activation]
|
| 52 |
+
scripts = [".pixi.sh"]
|
| 53 |
+
|
| 54 |
+
[tool.pixi.tasks]
|
| 55 |
+
_build-croco = { cmd = "python setup.py build_ext --inplace", cwd = "mini_dust3r/croco/curope/", outputs = [
|
| 56 |
+
"lib.linux-x86_64-cpython-311/curope.cpython-311-x86_64-linux-gnu.so",
|
| 57 |
+
] }
|
| 58 |
+
_download-checkpoint = { cmd = "ls checkpoints/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth || wget -P checkpoints/ https://download.europe.naverlabs.com/ComputerVision/DUSt3R/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth", outputs = [
|
| 59 |
+
"checkpoints/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth",
|
| 60 |
+
] }
|
| 61 |
+
_post-install = { cmd = "pwd", depends_on = [
|
| 62 |
+
"download-checkpoint",
|
| 63 |
+
"build-croco",
|
| 64 |
+
] }
|
| 65 |
+
_dev-install = "python -m pip install build twine"
|
| 66 |
+
_build-wheel = "python -m build"
|
| 67 |
+
upload-hf = { cmd = "python tools/upload_to_hf.py", depends_on = [
|
| 68 |
+
"_build-wheel",
|
| 69 |
+
] }
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
[tool.pixi.tasks.build-wheel]
|
| 73 |
+
cmd = "python -m build"
|
| 74 |
+
depends_on = ["_dev-install"]
|
| 75 |
+
description = "Build python wheels"
|
| 76 |
+
|
| 77 |
+
[tool.pixi.tasks.rerun-demo]
|
| 78 |
+
cmd = "PYTORCH_ENABLE_MPS_FALLBACK=1 python tools/rerun_demo.py"
|
| 79 |
+
description = "runs demo using rerun visualizer"
|
| 80 |
+
|
| 81 |
+
[tool.pixi.tasks.app]
|
| 82 |
+
cmd = "python tools/gradio_app.py"
|
| 83 |
+
description = "run gradio frontend for mini-dust3r"
|
| 84 |
+
|
| 85 |
+
[tool.pixi.tasks.dev-app]
|
| 86 |
+
cmd = """
|
| 87 |
+
gradio tools/gradio_app.py
|
| 88 |
+
"""
|
| 89 |
+
description = "Runs Gradio frontend with hot-reload"
|
| 90 |
+
|
| 91 |
+
[tool.pixi.feature.spaces.tasks.app]
|
| 92 |
+
cmd = """
|
| 93 |
+
python gradio_app.py
|
| 94 |
+
"""
|
| 95 |
+
description = "Runs Gradio frontend in huggingface spaces"
|
| 96 |
+
|
| 97 |
+
[tool.pixi.dependencies]
|
| 98 |
+
python = "3.11.*"
|
| 99 |
+
pytorch = { version = "2.3.1", channel = "pytorch" }
|
| 100 |
+
torchvision = { version = "0.18.1", channel = "pytorch" }
|
| 101 |
+
py-opencv = ">=4.10.0,<5"
|
| 102 |
+
tqdm = ">=4.66.5,<5"
|
| 103 |
+
trimesh = ">=4.4.4,<5"
|
| 104 |
+
jaxtyping = ">=0.2.33,<0.3"
|
| 105 |
+
beartype = ">=0.18.5,<0.19"
|
| 106 |
+
einops = ">=0.8.0,<0.9"
|
| 107 |
+
gradio = ">=4.41.0,<5"
|
| 108 |
+
scipy = ">=1.14.0,<2"
|
| 109 |
+
pip = ">=24.2,<25"
|
| 110 |
+
rerun-sdk = ">=0.19.0,<0.20"
|
| 111 |
+
|
| 112 |
+
[tool.pixi.pypi-dependencies]
|
| 113 |
+
# mini-dust3r = { path = ".", editable = true }
|
| 114 |
+
mini-dust3r = { path = "dist/mini_dust3r-0.1.3-py3-none-any.whl" }
|
| 115 |
+
|
| 116 |
+
[tool.pixi.target.linux-64.dependencies]
|
| 117 |
+
cuda = { version = "12.1", channel = "nvidia/label/cuda-12.1.0" }
|
| 118 |
+
pytorch-cuda = { version = "12.1.*", channel = "pytorch" }
|
| 119 |
+
|
| 120 |
+
[tool.pixi.feature.spaces.pypi-dependencies]
|
| 121 |
+
spaces = "*"
|
| 122 |
+
|
| 123 |
+
[tool.pixi.environments]
|
| 124 |
+
spaces = { features = ["spaces"], solve-group = "default" }
|
| 125 |
+
|
| 126 |
+
[tool.ruff]
|
| 127 |
+
ignore = [
|
| 128 |
+
"F722", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
|
| 129 |
+
]
|