forked from NVIDIA/modulus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
141 lines (125 loc) · 3.61 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "nvidia-modulus"
authors = [
{ name="NVIDIA Modulus Team"},
]
description = "A deep learning framework for AI-driven multi-physics systems"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "Apache 2.0"}
dependencies = [
"torch>=2.0.0",
"numpy>=1.22.4,<1.25",
"xarray>=2023.1.0",
"zarr>=2.14.2",
"fsspec>=2023.1.0",
"s3fs>=2023.5.0",
"nvidia_dali_cuda120>=1.35.0",
"setuptools>=67.6.0",
"certifi>=2023.7.22",
"pytz>=2023.3",
"treelib>=1.2.5",
"tqdm>=4.60.0",
"nvtx>=0.2.8",
"onnx>=1.14.0",
"timm>=0.9.12",
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/NVIDIA/modulus"
Documentation = "https://docs.nvidia.com/modulus/#core"
Issues = "https://github.com/NVIDIA/modulus/issues"
Changelog = "https://github.com/NVIDIA/modulus/blob/main/CHANGELOG.md"
[project.optional-dependencies]
launch = [
"hydra-core>=1.2.0",
"termcolor>=2.1.1",
"wandb>=0.13.7",
"mlflow>=2.1.1",
"pydantic>=2.4.2",
"imageio>=2.28.1",
"moviepy>=1.0.3",
]
dev = [
"pytest>=6.0.0",
"pyyaml>=6.0",
"black==22.10.0",
"interrogate==1.5.0",
"coverage==6.5.0",
"ruff==0.0.290",
]
makani = [
# TODO(akamenev): PyPI does not allow direct URL deps, update once Makani is in PyPI
# "makani @ git+https://github.com/NVIDIA/[email protected]",
"torch-harmonics>=0.6.5,<0.7.1",
"tensorly>=0.8.1",
"tensorly-torch>=0.4.0",
]
fignet = [
"jaxtyping>=0.2",
"torch_scatter>=2.1",
"torchinfo>=1.8",
"warp-lang>=1.0",
"webdataset>=0.2",
]
all = [
"h5py>=3.7.0",
"netcdf4>=1.6.3",
"ruamel.yaml>=0.17.22",
"scikit-learn>=1.0.2",
"scikit-image>=0.24.0",
"warp-lang>=1.0",
"vtk>=9.2.6",
"pyvista>=0.40.1",
"cftime>=1.6.2",
"einops>=0.7.0",
"pyspng>=0.1.0",
"shapely>=2.0.6",
"nvidia-modulus[launch]",
"nvidia-modulus[dev]",
"nvidia-modulus[makani]",
"nvidia-modulus[fignet]",
]
[tool.setuptools.dynamic]
version = {attr = "modulus.__version__"}
[tool.setuptools.packages.find]
include = ["modulus", "modulus.*"]
[tool.ruff]
# Enable flake8/pycodestyle (`E`), Pyflakes (`F`), flake8-bandit (`S`),
# isort (`I`), and performance 'PERF' rules.
select = ["E", "F", "S", "I", "PERF"]
fixable = ["I"]
# Never enforce `E402`, `E501` (line length violations),
# and `S311` (random number generators)
ignore = ["E501", "S311"]
# Exclude the examples and experimental folders
exclude = ["examples", "modulus/experimental"]
[tool.ruff.per-file-ignores]
# Ignore `F401` (import violations) in all `__init__.py` files, and in `docs/*.py`.
"__init__.py" = ["F401"]
"docs/*.py" = ["F401"]
# Ignore `S101` (assertions) in all `test` files.
"test/*.py" = ["S101"]
[project.entry-points."modulus.models"]
AFNO = "modulus.models.afno:AFNO"
DLWP = "modulus.models.dlwp:DLWP"
FNO = "modulus.models.fno:FNO"
GraphCastNet = "modulus.models.graphcast:GraphCastNet"
MeshGraphNet = "modulus.models.meshgraphnet:MeshGraphNet"
FullyConnected = "modulus.models.mlp:FullyConnected"
Pix2Pix = "modulus.models.pix2pix:Pix2Pix"
One2ManyRNN = "modulus.models.rnn:One2ManyRNN"
SRResNet = "modulus.models.srrn:SRResNet"
Pangu = "modulus.models.pangu:Pangu"
Fengwu = "modulus.models.fengwu:Fengwu"
SwinRNN = "modulus.models.swinvrnn:SwinRNN"
EDMPrecondSR = "modulus.models.diffusion:EDMPrecondSR"
UNet = "modulus.models.diffusion:UNet"