-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Expand file tree
/
Copy pathpyproject.toml
More file actions
205 lines (183 loc) · 4.41 KB
/
Copy pathpyproject.toml
File metadata and controls
205 lines (183 loc) · 4.41 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
204
205
[project]
name = "espnet"
dynamic = ["version", "readme"]
authors = [
{name="Shinji Watanabe", email="shinjiw@ieee.org"}
]
description = "ESPnet: end-to-end speech processing toolkit"
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.10"
license = { "text" = "Apache Software License" }
# We can use newer setuptools after removing chainer support.
# We didn't specify torch-related packages as it highly depends on environment.
dependencies = [
# ESPnet-2 and ESPnet-3 dependencies
"setuptools>=38.5.1,<74.0.0",
"configargparse>=1.2.1",
"packaging",
"typeguard",
"humanfriendly",
"scipy>=1.4.1",
"numpy>=2.0.0",
"PyYAML>=5.1.2",
"soundfile>=0.10.2",
"torch_optimizer",
"kaldiio>=2.18.0",
"sentencepiece==0.2.1",
"librosa>=0.10.2",
"lightning",
"torch_complex",
"tensorboard>=1.14",
"einops",
"lhotse",
"espnet_model_zoo",
"matplotlib",
"nltk>=3.4.5",
# ESPnet-3 related
"hydra-core",
"omegaconf",
"datasets",
"dask[distributed]",
"dask_jobqueue",
"torch>=2.3.1",
"torchaudio>=2.3.1",
"huggingface_hub",
"wandb",
]
[project.urls]
Homepage = "http://github.com/espnet/espnet"
[build-system]
requires = ["setuptools>=38.5.1,<74.0.0", "wheel", "setuptools-scm>=8.0,<9.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
version = {file = "version.txt"}
readme = {file = ["README.md"], content-type = "text/markdown"}
[tool.setuptools.packages.find]
include = ["espnet*", "egs3*"]
[tool.setuptools.package-data]
egs3 = ["egs3/TEMPLATE/**/*.yaml"]
[project.optional-dependencies]
asr = [
"ctc-segmentation @ git+https://github.com/espnet/ctc-segmentation.git@9b9ea1d",
"editdistance",
"opt_einsum",
"jiwer",
]
tts = [
"pyworld>=0.3.4",
"pypinyin<=0.44.0",
"espnet_tts_frontend",
"g2p_en @ git+https://github.com/espnet/g2p.git@master",
"jamo==0.4.1",
"jaconv",
]
enh = [
"ci_sdr",
"fast-bss-eval==0.1.3",
]
asr2 = [
"editdistance",
]
s2st = [
"editdistance",
"s3prl @ git+https://github.com/espnet/s3prl.git@572af70",
]
st = [
"editdistance",
]
s2t = [
"editdistance",
]
spk = [
"asteroid_filterbanks==0.4.0"
]
egs2 = [
"gdown",
"resampy",
"pysptk>=0.2.1",
"morfessor",
"youtube_dl",
"nnmnkwii",
"museval>=0.2.1",
"pystoi>=0.2.2",
"mir-eval>=0.6",
"fastdtw",
"nara_wpe>=0.0.5",
"sacrebleu>=1.5.1",
"praatio>=6,<7",
"scikit-learn>=1.0.0",
]
# Extras needed for SpeechLM training (espnet2/speechlm).
# Contains only packages not already in the base "dependencies" above.
# GPU-only runtime deps (torchtitan, liger-kernel) are listed here so that
# `pip install espnet[speechlm]` pulls them, but they are not imported at
# module load time in the hot path, so CPU-only installs still succeed.
speechlm = [
"psutil",
"transformers==5.5.4",
"huggingface-hub",
"joblib",
"polars",
"duckdb",
# torchtitan (distributed training) and liger-kernel (CUDA Triton
# kernels) are Linux+CUDA only. Leave them off Windows/macOS so
# `pip install espnet[all]` doesn't spend minutes backtracking
# through incompatible versions and then fail.
"torchtitan; sys_platform == 'linux'",
"liger-kernel; sys_platform == 'linux'",
]
dev = [
"black",
"flake8>=3.7.8",
"pytest>=7.0.0,<8.4.0",
"pytest-cov>=2.7.1",
"isort",
]
test = [
"pytest>=7.0.0,<8.4.0",
"pytest-timeouts>=1.2.1",
"pytest-pythonpath>=0.7.3",
"pytest-cov>=2.7.1",
"hacking>=2.0.0",
"mock>=2.0.0",
"pycodestyle",
"jsondiff>=2.0.0",
"flake8>=3.7.8",
"flake8-docstrings>=1.3.1",
"black",
"isort",
"h5py>=2.10.0",
"gradio",
"playwright",
]
doc = [
"sphinx<9.0.0",
"sphinx-rtd-theme>=0.2.4",
"myst-parser",
"sphinx-argparse>=0.2.5",
"sphinx-markdown-builder",
"sphinx-markdown-tables"
]
all = [
"espnet[asr]",
"espnet[tts]",
"espnet[enh]",
"espnet[spk]",
"espnet[speechlm]",
"espnet[egs2]",
"fairscale",
"transformers",
"evaluate",
]