pablovela5620 commited on
Commit
c30ef88
1 Parent(s): 6186809

Upload pyproject.toml with huggingface_hub

Browse files
Files changed (1) hide show
  1. pyproject.toml +97 -0
pyproject.toml ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "mini-nvs-solver"
3
+ version = "0.1.0"
4
+ description = "Add a short description here"
5
+ authors = [{ name = "Pablo Vela", email = "[email protected]" }]
6
+ requires-python = ">= 3.10"
7
+ dependencies = []
8
+
9
+ [build-system]
10
+ requires = ["setuptools"]
11
+ build-backend = "setuptools.build_meta"
12
+
13
+ [tool.setuptools.packages.find]
14
+ include = ["src*"]
15
+
16
+ [tool.pixi.project]
17
+ channels = ["nvidia/label/cuda-11.8.0", "xformers", "conda-forge", "pytorch"]
18
+ platforms = ["linux-64"]
19
+
20
+ [tool.pixi.system-requirements]
21
+ libc = { family = "glibc", version = "2.31" }
22
+
23
+ [tool.pixi.activation]
24
+ scripts = [".pixi.sh"]
25
+
26
+
27
+ [tool.pixi.tasks]
28
+ _install-wheel = "python -m pip install $WHL_PATH --force-reinstall"
29
+ _build-wheel = "python -m pip install build && python -m build"
30
+ upload-hf = { cmd = "python tools/upload_to_hf.py", depends_on = [
31
+ "_build-wheel",
32
+ ] }
33
+
34
+ [tool.pixi.tasks.app]
35
+ cmd = """
36
+ python tools/gradio_app.py
37
+ """
38
+ description = "Runs Gradio frontend"
39
+
40
+ [tool.pixi.tasks.dev-app]
41
+ cmd = """
42
+ gradio tools/gradio_app.py
43
+ """
44
+ description = "Runs Gradio frontend for hotreload"
45
+
46
+ [tool.pixi.tasks.rerun-demo]
47
+ cmd = """
48
+ python tools/rerun_demo.py --headless --connect
49
+ """
50
+ description = "Runs Rerun demo"
51
+
52
+ [tool.pixi.feature.spaces.tasks.app]
53
+ cmd = """
54
+ PYTORCH_JIT=0 python gradio_app.py
55
+ """
56
+ description = "Runs Gradio frontend for depth comparison"
57
+ depends_on = ["_install-wheel"]
58
+
59
+ [tool.pixi.pypi-dependencies]
60
+ monopriors = { url = "https://test-files.pythonhosted.org/packages/8e/c1/f02361c406ab5e780aade6e6285ce30e1c99ad71633281286092d24e4bcf/monopriors-0.1.2-py3-none-any.whl" }
61
+ src = { path = ".", editable = true }
62
+
63
+ [tool.pixi.dependencies]
64
+ python = "3.10.*"
65
+ pip = ">=24.0,<25"
66
+ cuda = { version = "*", channel = "nvidia/label/cuda-11.8.0" }
67
+ pytorch-cuda = { version = "11.8.*", channel = "pytorch" }
68
+ pytorch = { version = "2.3.*", channel = "pytorch" }
69
+ torchvision = { version = "0.18.*", channel = "pytorch" }
70
+ xformers = { version = ">=0.0.26.post1,<0.0.27", channel = "xformers" }
71
+ beartype = ">=0.18.5,<0.19"
72
+ rerun-sdk = ">=0.16.1,<0.17"
73
+ numpy = "<2.0.0"
74
+ jaxtyping = ">=0.2.30,<0.3"
75
+ einops = ">=0.8.0,<0.9"
76
+ transformers = ">=4.42.3,<4.43"
77
+ diffusers = ">=0.29.2,<0.30"
78
+ accelerate = ">=0.32.0,<0.33"
79
+ pyserde = ">=0.19.3,<0.20"
80
+ trimesh = ">=4.4.1,<4.5"
81
+ icecream = ">=2.1.3,<2.2"
82
+ timm = ">=1.0.7,<1.1"
83
+ wandb = ">=0.16.6,<0.17"
84
+ tqdm = ">=4.66.4,<4.67"
85
+ gradio = ">=4.39.0,<4.40"
86
+
87
+ [tool.pixi.feature.spaces.pypi-dependencies]
88
+ spaces = "*"
89
+
90
+
91
+ [tool.pixi.environments]
92
+ spaces = { features = ["spaces"], solve-group = "default" }
93
+
94
+ [tool.ruff]
95
+ ignore = [
96
+ "F722", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
97
+ ]