Spaces:
Running
on
Zero
Running
on
Zero
pablovela5620
commited on
Commit
•
3250db1
1
Parent(s):
dd13a1d
Upload pyproject.toml with huggingface_hub
Browse files- pyproject.toml +89 -0
pyproject.toml
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[project]
|
2 |
+
name = "sam2-depthanything"
|
3 |
+
version = "0.1.0"
|
4 |
+
description = "Add a short description here"
|
5 |
+
authors = [{ name = "Pablo Vela", email = "pablovela5620@gmail.com" }]
|
6 |
+
requires-python = ">= 3.10"
|
7 |
+
dependencies = [
|
8 |
+
"mmcv-lite>=2.2.0,<2.3",
|
9 |
+
"gradio-rerun==0.0.4",
|
10 |
+
"build>=1.2.1,<2",
|
11 |
+
"monopriors>=0.1.0,<0.2",
|
12 |
+
"hf-transfer>=0.1.8,<0.2",
|
13 |
+
]
|
14 |
+
|
15 |
+
[build-system]
|
16 |
+
requires = ["setuptools"]
|
17 |
+
build-backend = "setuptools.build_meta"
|
18 |
+
|
19 |
+
[tool.setuptools.packages.find]
|
20 |
+
include = ["sam2_depthanything*"]
|
21 |
+
|
22 |
+
[tool.pixi.project]
|
23 |
+
channels = ["nvidia", "nvidia/label/cuda-11.8.0", "conda-forge", "pytorch"]
|
24 |
+
conda-pypi-map = { "pytorch" = "torch_mapping.json" }
|
25 |
+
platforms = ["linux-64"]
|
26 |
+
|
27 |
+
[tool.pixi.system-requirements]
|
28 |
+
libc = { family = "glibc", version = "2.31" }
|
29 |
+
|
30 |
+
[tool.pixi.activation]
|
31 |
+
scripts = [".pixi.sh"]
|
32 |
+
|
33 |
+
|
34 |
+
[tool.pixi.tasks]
|
35 |
+
_install-wheel = "uv pip install ./$WHL_PATH --force-reinstall"
|
36 |
+
_build-wheel = "python -m build"
|
37 |
+
upload-hf = { cmd = "python tools/upload_to_hf.py", depends_on = [
|
38 |
+
"_build-wheel",
|
39 |
+
] }
|
40 |
+
|
41 |
+
[tool.pixi.tasks.app]
|
42 |
+
cmd = """
|
43 |
+
python tools/gradio_app.py
|
44 |
+
"""
|
45 |
+
description = "Runs Gradio frontend"
|
46 |
+
|
47 |
+
[tool.pixi.tasks.dev-app]
|
48 |
+
cmd = """
|
49 |
+
gradio tools/gradio_app.py
|
50 |
+
"""
|
51 |
+
description = "Runs Gradio frontend for hotreload"
|
52 |
+
|
53 |
+
[tool.pixi.feature.spaces.tasks.app]
|
54 |
+
cmd = """
|
55 |
+
python gradio_app.py
|
56 |
+
"""
|
57 |
+
description = "Runs Gradio frontend for depth comparison"
|
58 |
+
depends_on = ["_install-wheel"]
|
59 |
+
|
60 |
+
[tool.pixi.pypi-dependencies]
|
61 |
+
sam-2 = { git = "https://github.com/facebookresearch/segment-anything-2.git", rev = "0db838b11726893f151fa5826ecfa744e1a7760f", extras = [
|
62 |
+
"demo",
|
63 |
+
] }
|
64 |
+
sam2_depthanything = { path = ".", editable = true }
|
65 |
+
|
66 |
+
[tool.pixi.dependencies]
|
67 |
+
python = "3.11.*"
|
68 |
+
pytorch = { version = "2.3.1", channel = "pytorch" }
|
69 |
+
torchvision = { version = "0.18.1", channel = "pytorch" }
|
70 |
+
cuda = { version = "*", channel = "nvidia/label/cuda-11.8.0" }
|
71 |
+
pytorch-cuda = { version = "11.8.*", channel = "pytorch" }
|
72 |
+
beartype = ">=0.18.5,<0.19"
|
73 |
+
rerun-sdk = "==0.17.0"
|
74 |
+
jaxtyping = ">=0.2.33,<0.3"
|
75 |
+
uv = ">=0.3.4,<0.4"
|
76 |
+
einops = ">=0.8.0,<0.9"
|
77 |
+
transformers = ">=4.41.2,<5"
|
78 |
+
|
79 |
+
[tool.pixi.feature.spaces.pypi-dependencies]
|
80 |
+
spaces = "==0.29.3"
|
81 |
+
|
82 |
+
|
83 |
+
[tool.pixi.environments]
|
84 |
+
spaces = { features = ["spaces"], solve-group = "default" }
|
85 |
+
|
86 |
+
[tool.ruff]
|
87 |
+
ignore = [
|
88 |
+
"F722", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
|
89 |
+
]
|