-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
203 lines (180 loc) · 5.27 KB
/
Copy pathpyproject.toml
File metadata and controls
203 lines (180 loc) · 5.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
[project]
name = "ghost"
version = "0.1.0"
description = "GHOST: Hierarchical Sub-Goal Policies for Generalizing Robot Manipulation"
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE.txt" }
authors = [
{ email = "sskrishn@andrew.cmu.edu", name = "Sriram Krishna" },
{ email = "baeisner@andrew.cmu.edu", name = "Ben Eisner" },
{ email = "hzhan2@andrew.cmu.edu", name = "Haotian Zhan" },
]
dependencies = [
"diffusers>=0.26.3",
"gif",
"typer",
"huggingface-hub>=0.34.0,<1.0",
"datasets<4.0.0",
"hydra-core==1.3.2",
"pytorch-lightning==2.4",
"omegaconf==2.3.0",
"numpy>=2.1",
"torchmetrics",
"wandb==0.18",
"moviepy==1.0.3",
"transformers==4.56.0",
"sentencepiece",
"robot_descriptions",
"trimesh",
"pip>=25.0.1,<26",
"zarr>=2.12,<3",
"lightning-utilities==0.11.7",
"ipdb>=0.13.13,<0.14",
"addict==2.4.0",
"mujoco>=3.2.7,<3.3",
"google-genai>=1.11.0,<2",
"peft>=0.17,<0.18",
"decord>=0.6.0,<0.7",
"mink>=0.0.11,<0.0.12",
"pot>=0.9.6.post1,<0.10",
]
[project.optional-dependencies]
develop = [
"ruff==0.3.6",
"mypy==1.3.0",
"pytest==7.3.2",
"basedpyright",
]
[build-system]
requires = ["setuptools", "setuptools-scm", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
ghost = ["py.typed"]
# Pixi-specific configuration
[tool.pixi.project]
channels = ["pytorch", "nvidia/label/cuda-12.4.0", "conda-forge"]
platforms = ["linux-64"]
# Environment variables set on environment activation (e.g. pixi install/run/shell).
# GIT_LFS_SKIP_SMUDGE avoids LeRobot git-LFS install errors.
[tool.pixi.activation.env]
GIT_LFS_SKIP_SMUDGE = "1"
[tool.pixi.system-requirements]
libc = { family = "glibc", version = "2.31" }
cuda = "12.4"
# Conda dependencies
[tool.pixi.dependencies]
python = "3.10.*"
cuda-toolkit = "12.4.*"
gcc = "11.*"
gxx = "11.*"
setuptools = "==65.5.0"
protobuf = ">=4.21,<6"
ffmpeg = ">=6,<8"
# PyPI-specific dependencies
[tool.pixi.pypi-dependencies]
ghost = { path = ".", editable = true }
torch = { version = "==2.6.0", index = "https://download.pytorch.org/whl/cu124" }
torchvision = { version = "==0.21.0", index = "https://download.pytorch.org/whl/cu124" }
timm = "==0.9.12"
fvcore = "==0.1.5.post20221221"
iopath = "==0.1.9"
opencv-python = "*"
packaging = "*"
wheel = "*"
ninja = "*"
spconv-cu124 = "*"
torch_geometric = "<2.3"
lerobot = { git = "https://github.com/r-pad/lerobot.git", rev = "825eaf8086a4929b107ff907268069694ed5bf7b" }
# Problematic dependencies as tasks
[tool.pixi.tasks]
install-pyg = """
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.6.0+cu124.html
"""
install-pytorch3d = """
pip install git+https://github.com/facebookresearch/pytorch3d.git@stable
"""
install-open3d = "pip install open3d==0.19.0"
install-rpad-libs = "pip install git+https://github.com/r-pad/pyg_libs.git git+https://github.com/r-pad/visualize_3d.git"
install-torchdatasets = "pip install git+https://github.com/sriramsk1999/torchdatasets.git"
install-segment-anything = "pip install git+https://github.com/facebookresearch/segment-anything.git"
install-mano = "pip install git+https://github.com/hassony2/chumpy.git git+https://github.com/hassony2/manopth.git"
install-tf = "pip install tensorflow-datasets<5 tensorflow-cpu<3"
install-deps = { depends-on = [
"install-open3d",
"install-pyg",
"install-pytorch3d",
"install-rpad-libs",
"install-torchdatasets",
"install-segment-anything",
"install-mano",
"install-tf",
] }
test-cuda = "python -c 'import torch; print(torch.cuda.is_available())'"
# Environments
[tool.pixi.environments]
default = { features = ["develop"], solve-group = "default" }
[tool.ruff]
# Enable Pyflakes ('F'), pycodestyle ('E'), isort ('I')
target-version = "py39"
line-length = 88 # Same as Black
select = ["E", "F", "I", "W", "N", "UP", "B", "A", "C4", "PL"]
ignore = []
# Allow autofix for all enabled rules (when `--fix` is passed)
fixable = ["A", "B", "C", "E", "F", "I", "N", "Q", "W", "UP", "PL"]
unfixable = []
# Exclude certain files/directories from linting
exclude = [
".git",
".eggs",
".mypy_cache",
".ruff_cache",
".venv",
"__pycache__",
"build",
"dist",
]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"] # Ignore unused imports in __init__.py
[tool.ruff.isort]
known-third-party = ["wandb"]
[tool.ruff.format]
# Like Black
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.basedpyright]
include = ["src"]
reportMissingImports = "error"
reportMissingTypeStubs = false
pythonVersion = "3.10"
venvPath = ".pixi/envs"
venv = "default"
typeCheckingMode = "basic"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
mypy_path = "src"
namespace_packages = true
explicit_package_bases = true
[[tool.mypy.overrides]]
module = [
"torchvision.*",
"diffusers",
"pytorch3d.transforms",
"timm.*",
"open3d",
"tqdm.auto",
"tensorflow_datasets",
"pytorch3d.structures",
"torchdatasets",
"tqdm",
"tensorflow",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = "tests"