Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (109 loc) · 2.42 KB
/
Copy pathpyproject.toml
File metadata and controls
122 lines (109 loc) · 2.42 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
[project]
name = "stable-worldmodel"
version = "0.1.1"
description = "World Model Research Made Simple"
readme="README.md"
license="MIT"
authors = [{name = "Lucas Maes"}, {name = "Quentin Le Lidec"}, {name = "Randall Balestriero"}]
maintainers = [{name = "Lucas Maes", email = "lucas_maes@brown.edu"}]
urls = {Homepage = "http://github.com/galilai-group/stable-worldmodel"}
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.10"
dependencies = [
"torch",
"torchvision",
"numpy",
"tabulate",
"gymnasium",
"einops",
"pillow",
"tqdm",
"typer",
"rich",
"hydra-core",
]
[project.scripts]
swm = "stable_worldmodel.cli:app"
[project.optional-dependencies]
train = [
"transformers>=4.50.0",
"stable-pretraining>=0.1.8",
"datasets>=2.20.0",
"hydra-core",
"hydra-submitit-launcher",
"wandb",
]
# Lance dataset storage — the default dataset format. Split out of the base
# install so planning-only consumers (solvers + world model, no dataset IO)
# are not forced to pull ~410 MB of native wheels.
data = [
"lancedb>=0.30.0",
"pylance>=4.0.0",
"pyarrow",
]
env = [
"pygame",
"pymunk",
"shapely",
"ogbench",
"minigrid",
"gymnasium[all]",
"gymnasium-robotics",
# gymnasium-robotics 1.4.2 fails its joint-type checks with MuJoCo 3.12.
"mujoco<3.12",
"opencv-python-headless",
"stable_baselines3>=2.0.0",
"craftax>=1.5.0",
"ale-py",
]
format = [
"h5py",
"hdf5plugin",
"torchcodec",
"imageio[ffmpeg]",
# Blob-v2 video (lance_video) is layered on the core Lance stack.
"stable-worldmodel[data]",
]
lerobot = [
"lerobot>=0.5.0; python_version >= '3.12'",
]
all = [
"stable-worldmodel[train,env,format,data]",
]
[dependency-groups]
dev = [
"ipdb",
"pre-commit",
"pytest",
"pytest-cov>=7.0.0",
"ruff",
"twine",
"mkdocs-shadcn",
"pymdown-extensions",
"pillow",
"torchcodec",
"imageio[ffmpeg]",
"mkdocstrings[python]",
]
[build-system]
requires = ["uv_build>=0.9.21,<0.10.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-root = "."
source-exclude = [
"**/.mypy_cache/**",
"**/__pycache__/**",
"**/*.pyc",
]
[tool.ruff]
line-length = 79
indent-width = 4
[tool.ruff.format]
indent-style = "space"
quote-style = "single"
[tool.coverage.run]
omit = ["stable_worldmodel/envs/*"]