pablovela5620 commited on
Commit
1067d95
·
verified ·
1 Parent(s): ddffe00

Upload pyproject.toml with huggingface_hub

Browse files
Files changed (1) hide show
  1. pyproject.toml +114 -0
pyproject.toml ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "monopriors"
3
+ version = "0.1.0"
4
+ description = "Monocular Geometric Priors"
5
+
6
+ dependencies = [
7
+ "huggingface-hub",
8
+ "opencv-python",
9
+ "geffnet",
10
+ "calibur == 0.0.1",
11
+ "omnidata-tools",
12
+ "open3d",
13
+ "gradio-imageslider",
14
+ "gradio",
15
+ "gradio-rerun>= 0.0.3",
16
+ "hf-transfer",
17
+ "mmcv-lite",
18
+
19
+ ]
20
+
21
+ [tool.setuptools.packages.find]
22
+ include = ["monopriors*"]
23
+
24
+ [tool.pixi.project]
25
+ channels = [
26
+ "nvidia/label/cuda-11.8.0",
27
+ "nvidia",
28
+ "xformers",
29
+ "conda-forge",
30
+ "pytorch",
31
+ ]
32
+ platforms = ["linux-64"]
33
+
34
+ [tool.pixi.system-requirements]
35
+ libc = { family = "glibc", version = "2.31" }
36
+
37
+ [tool.pixi.activation]
38
+ scripts = [".pixi.sh"]
39
+
40
+ [tool.pixi.tasks]
41
+ _install-wheel = "python -m pip install $WHL_PATH --force-reinstall"
42
+ build-wheel = "rm -r dist && python -m pip install build && python -m build"
43
+ upload-hf = "pwd"
44
+
45
+ [tool.pixi.tasks.download-example]
46
+ cmd = """
47
+ test -e data/example-room-scan-poly.zip
48
+ || (
49
+ huggingface-cli download pablovela5620/sample-polycam-room \
50
+ example-room-scan-poly.zip --repo-type dataset \
51
+ --local-dir data/
52
+ )
53
+ """
54
+ outputs = ["data/example-room-scan-poly.zip"]
55
+ description = "Downloads an example polycam dataset from huggingface"
56
+
57
+ [tool.pixi.tasks.polycam-inference]
58
+ cmd = """
59
+ python tools/inference_polycam.py \
60
+ --zip-path data/example-room-scan-poly.zip
61
+ """
62
+ depends_on = ["download-example"]
63
+ description = "Runs inference on polycam dataset on downloaded example, this will predict depths+normals"
64
+
65
+ [tool.pixi.tasks.app]
66
+ cmd = """
67
+ python tools/gradio_app.py
68
+ """
69
+ description = "Runs Gradio frontend for depth comparison"
70
+
71
+ [tool.pixi.feature.spaces.tasks.app]
72
+ cmd = """
73
+ PYTORCH_JIT=0 python gradio_app.py
74
+ """
75
+ description = "Runs Gradio frontend for depth comparison"
76
+ depends_on = ["_install-wheel"]
77
+
78
+ [tool.pixi.dependencies]
79
+ python = "3.10.*"
80
+ pip = "24.*"
81
+ cuda = { version = "*", channel = "nvidia/label/cuda-11.8.0" }
82
+ pytorch-cuda = { version = "11.8.*", channel = "pytorch" }
83
+ pytorch = { version = "2.3.*", channel = "pytorch" }
84
+ torchvision = { version = "0.18.*", channel = "pytorch" }
85
+ icecream = ">=2.1.3,<2.2"
86
+ jaxtyping = ">=0.2.28,<0.3"
87
+ einops = ">=0.8.0,<0.9"
88
+ matplotlib = ">=3.8.3,<3.9"
89
+ wandb = ">=0.16.5,<0.17"
90
+ scipy = ">=1.12.0,<1.13"
91
+ timm = ">=0.9.16,<0.10"
92
+ pandas = ">=2.2.2,<2.3"
93
+ pyarrow = ">=15.0.2,<15.1"
94
+ pytorch-lightning = ">=2.2.2,<2.3"
95
+ xformers = ">=0.0.26.post1,<0.0.27"
96
+ jupyterlab = ">=4.2.0,<4.3"
97
+ rerun-sdk = ">=0.16.1,<0.17"
98
+ numpy = "<2.0.0"
99
+ beartype = ">=0.18.5,<0.19"
100
+
101
+ [tool.pixi.pypi-dependencies]
102
+ monopriors = { path = ".", editable = true }
103
+
104
+ [tool.pixi.feature.spaces.pypi-dependencies]
105
+ spaces = "*"
106
+
107
+
108
+ [tool.pixi.environments]
109
+ spaces = { features = ["spaces"], solve-group = "default" }
110
+
111
+ [tool.ruff]
112
+ ignore = [
113
+ "F722", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
114
+ ]