pablovela5620 commited on
Commit
30bcbfd
1 Parent(s): 9e593cd

Upload pyproject.toml with huggingface_hub

Browse files
Files changed (1) hide show
  1. pyproject.toml +127 -0
pyproject.toml ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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",
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", "pillow-heif>=0.20.0,<0.21", "build>=1.2.2.post1,<2",
35
+ ]
36
+
37
+ [tool.setuptools.packages.find]
38
+ include = ["mini_dust3r*"]
39
+
40
+ [tool.pixi.project]
41
+ name = "mini-dust3r"
42
+ authors = ["pablovela5620 <pablovela5620@gmail.com>"]
43
+ channels = ["nvidia", "nvidia/label/cuda-12.1.0", "conda-forge", "pytorch"]
44
+ platforms = ["linux-64", "osx-arm64", "win-64"]
45
+
46
+ [tool.pixi.system-requirements]
47
+ libc = { family = "glibc", version = "2.31" }
48
+
49
+ [tool.pixi.activation]
50
+ scripts = [".pixi.sh"]
51
+
52
+ [tool.pixi.tasks]
53
+ _build-croco = { cmd = "python setup.py build_ext --inplace", cwd = "mini_dust3r/croco/curope/", outputs = [
54
+ "lib.linux-x86_64-cpython-311/curope.cpython-311-x86_64-linux-gnu.so",
55
+ ] }
56
+ _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 = [
57
+ "checkpoints/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth",
58
+ ] }
59
+ _post-install = { cmd = "pwd", depends_on = [
60
+ "download-checkpoint",
61
+ "build-croco",
62
+ ] }
63
+ _dev-install = "python -m pip install build twine"
64
+ _build-wheel = "python -m build"
65
+ upload-hf = { cmd = "python tools/upload_to_hf.py", depends_on = [
66
+ "_build-wheel",
67
+ ] }
68
+
69
+
70
+ [tool.pixi.tasks.build-wheel]
71
+ cmd = "python -m build"
72
+ depends_on = ["_dev-install"]
73
+ description = "Build python wheels"
74
+
75
+ [tool.pixi.tasks.rerun-demo]
76
+ cmd = "PYTORCH_ENABLE_MPS_FALLBACK=1 python tools/rerun_demo.py"
77
+ description = "runs demo using rerun visualizer"
78
+
79
+ [tool.pixi.tasks.app]
80
+ cmd = "python tools/gradio_app.py"
81
+ description = "run gradio frontend for mini-dust3r"
82
+
83
+ [tool.pixi.tasks.dev-app]
84
+ cmd = """
85
+ gradio tools/gradio_app.py
86
+ """
87
+ description = "Runs Gradio frontend with hot-reload"
88
+
89
+ [tool.pixi.feature.spaces.tasks.app]
90
+ cmd = """
91
+ python gradio_app.py
92
+ """
93
+ description = "Runs Gradio frontend in huggingface spaces"
94
+
95
+ [tool.pixi.dependencies]
96
+ python = "3.11.*"
97
+ pytorch = { version = "2.3.1", channel = "pytorch" }
98
+ torchvision = { version = "0.18.1", channel = "pytorch" }
99
+ py-opencv = ">=4.10.0,<5"
100
+ tqdm = ">=4.66.5,<5"
101
+ trimesh = ">=4.4.4,<5"
102
+ jaxtyping = ">=0.2.33,<0.3"
103
+ beartype = ">=0.18.5,<0.19"
104
+ einops = ">=0.8.0,<0.9"
105
+ gradio = ">=4.41.0,<5"
106
+ scipy = ">=1.14.0,<2"
107
+ pip = ">=24.2,<25"
108
+ rerun-sdk = ">=0.19.0,<0.20"
109
+
110
+ [tool.pixi.pypi-dependencies]
111
+ mini-dust3r = { path = ".", editable = true }
112
+ # mini-dust3r = { path = ".", editable = true }
113
+
114
+ [tool.pixi.target.linux-64.dependencies]
115
+ cuda = { version = "12.1", channel = "nvidia/label/cuda-12.1.0" }
116
+ pytorch-cuda = { version = "12.1.*", channel = "pytorch" }
117
+
118
+ [tool.pixi.feature.spaces.pypi-dependencies]
119
+ spaces = "*"
120
+
121
+ [tool.pixi.environments]
122
+ spaces = { features = ["spaces"], solve-group = "default" }
123
+
124
+ [tool.ruff]
125
+ ignore = [
126
+ "F722", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
127
+ ]