pablovela5620 commited on
Commit
a4ed161
1 Parent(s): d25a458

Upload pyproject.toml with huggingface_hub

Browse files
Files changed (1) hide show
  1. pyproject.toml +113 -0
pyproject.toml ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ dependencies = [
3
+ "mini-dust3r>=0.1.1,<0.2",
4
+ "mmcv-lite>=2.2.0,<3",
5
+ "pillow-heif>=0.18.0,<0.19",
6
+ "build>=1.2.2.post1,<2",
7
+ ]
8
+ description = "Add a short description here"
9
+ name = "instant_splat"
10
+ requires-python = ">= 3.11"
11
+ version = "0.1.0"
12
+
13
+ [build-system]
14
+ requires = ["setuptools>=61.0"]
15
+ build-backend = "setuptools.build_meta"
16
+
17
+ [tool.setuptools.packages.find]
18
+ include = ["instant_splat*"]
19
+
20
+ [tool.pixi.project]
21
+ channels = ["nvidia", "nvidia/label/cuda-11.8.0", "conda-forge", "pytorch"]
22
+ platforms = ["linux-64"]
23
+
24
+ [tool.pixi.system-requirements]
25
+ libc = { family = "glibc", version = "2.31" }
26
+
27
+ [tool.pixi.activation]
28
+ scripts = [".pixi.sh"]
29
+
30
+ [tool.pixi.pypi-dependencies]
31
+ roma = ">=1.5.0, <2"
32
+ evo = ">=1.30.0, <2"
33
+ pyglet = "<2"
34
+ huggingface-hub = "*"
35
+ simple_knn = { url = "https://huggingface.co/datasets/pablovela5620/instantsplat/resolve/main/simple_knn-0.1.0%2Bpt231cu118-cp311-cp311-linux_x86_64.whl" }
36
+ diff_gaussian_rasterization = { url = "https://huggingface.co/datasets/pablovela5620/instantsplat/resolve/main/diff_gaussian_rasterization-0.1.0%2Bpt231cu118-cp311-cp311-linux_x86_64.whl" }
37
+ imageio = { version = "*", extras = ["ffmpeg"] }
38
+ # instant_splat = { path = ".", editable = true }
39
+ instant_splat = { path = "dist/instant_splat-0.1.0-py3-none-any.whl" }
40
+
41
+ [tool.pixi.dependencies]
42
+ python = "3.11.*"
43
+ pytorch = { version = "2.3.1", channel = "pytorch" }
44
+ torchvision = { version = "0.18.1", channel = "pytorch" }
45
+ cuda = { version = "*", channel = "nvidia/label/cuda-11.8.0" }
46
+ pytorch-cuda = { version = "11.8.*", channel = "pytorch" }
47
+ cuda-nvcc = "11.8.*"
48
+ beartype = ">=0.18.5,<0.19"
49
+ rerun-sdk = ">=0.18.2,<0.19"
50
+ jaxtyping = ">=0.2.34,<0.3"
51
+ einops = ">=0.8.0,<0.9"
52
+ cmake = "==3.14.0"
53
+ pip = ">=24.2,<25"
54
+ gradio = ">=4.42.0,<5"
55
+ matplotlib = ">=3.9.1,<4"
56
+ tqdm = ">=4.66.5,<5"
57
+ py-opencv = ">=4.10.0,<5"
58
+ scipy = ">=1.14.1,<2"
59
+ trimesh = ">=4.4.9,<5"
60
+ tensorboard = ">=2.17.1,<3"
61
+ gdown = ">=5.2.0,<6"
62
+ plyfile = ">=1.1,<2"
63
+ tyro = ">=0.8.11,<0.9"
64
+ icecream = ">=2.1.3,<3"
65
+
66
+ [tool.pixi.tasks]
67
+ post-install = { cmd = "pwd", depends_on = ["_download_ckpt"] }
68
+ _modify_rasterizer = { cmd = '''sed -i 's/p_view\.z <= 0\.2f/p_view\.z <= 0.001f/' submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h''' }
69
+ _get-poses-example = { cmd = """python tools/coarse_init_infer.py --img_base_path data/TT/Family/3_views/ --n_views 3 --focal_avg""" }
70
+ _train-example = { cmd = """python tools/train_joint.py -s data/TT/Family/3_views/ -m output/TT/Family/3_views/ --n_views 3 --scene Family --iter 300 --optim_pose""" }
71
+ _render-example = { cmd = """python tools/render_by_interp.py -s data/TT/Family/3_views/ -m output/TT/Family/3_views/ --n_views 3 --scene Family --iter 300 --eval --get_video""" }
72
+ _build-wheel = "python -m build"
73
+ upload-hf = { cmd = "python tools/upload_to_hf.py", depends_on = [
74
+ "_build-wheel",
75
+ ] }
76
+
77
+ [tool.pixi.tasks._download_ckpt]
78
+ cmd = """
79
+ test -e "checkpoints/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth"
80
+ || (
81
+ mkdir -p checkpoints/
82
+ && wget https://download.europe.naverlabs.com/ComputerVision/DUSt3R/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth -P checkpoints/
83
+ )
84
+ """
85
+
86
+ [tool.pixi.tasks.app]
87
+ cmd = """
88
+ python tools/gradio_app.py
89
+ """
90
+ description = "Runs Gradio frontend"
91
+
92
+ [tool.pixi.tasks.dev-app]
93
+ cmd = """
94
+ gradio tools/gradio_app.py
95
+ """
96
+ description = "Runs Gradio frontend for hotreload"
97
+
98
+ [tool.pixi.feature.spaces.tasks.app]
99
+ cmd = """
100
+ python gradio_app.py
101
+ """
102
+ description = "Runs Gradio frontend in huggingface spaces"
103
+
104
+ [tool.pixi.feature.spaces.pypi-dependencies]
105
+ spaces = "*"
106
+
107
+ [tool.pixi.environments]
108
+ spaces = { features = ["spaces"], solve-group = "default" }
109
+
110
+ [tool.ruff]
111
+ ignore = [
112
+ "F722", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
113
+ ]