mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-16 08:17:45 +01:00
[to #42322933] separate audio requirements
This commit is contained in:
@@ -1,45 +1,4 @@
|
||||
bitstring
|
||||
easyasr>=0.0.2
|
||||
espnet==202204
|
||||
funasr>=0.1.7
|
||||
funtextprocessing>=0.1.1
|
||||
greenlet>=1.1.2
|
||||
h5py
|
||||
inflect
|
||||
jedi>=0.18.1
|
||||
keras
|
||||
kwsbp>=0.0.2
|
||||
librosa
|
||||
lxml
|
||||
matplotlib
|
||||
MinDAEC
|
||||
mir_eval>=0.7
|
||||
msgpack>=1.0.4
|
||||
nara_wpe
|
||||
nltk
|
||||
# tensorflow 1.15 requires numpy<=1.18
|
||||
numpy<=1.18
|
||||
parso>=0.8.3
|
||||
pexpect>=4.8.0
|
||||
pickleshare>=0.7.5
|
||||
prompt-toolkit>=3.0.30
|
||||
# protobuf version beyond 3.20.0 is not compatible with TensorFlow 1.x, therefore is discouraged.
|
||||
protobuf>3,<3.21.0
|
||||
ptflops
|
||||
ptyprocess>=0.7.0
|
||||
py_sound_connect>=0.1
|
||||
pygments>=2.12.0
|
||||
pysptk>=0.1.15,<0.2.0
|
||||
pytorch_wavelets
|
||||
PyWavelets>=1.0.0
|
||||
rotary_embedding_torch>=0.1.5
|
||||
scikit-learn
|
||||
SoundFile>0.10
|
||||
sox
|
||||
speechbrain>=0.5
|
||||
torchaudio
|
||||
tqdm
|
||||
traitlets>=5.3.0
|
||||
ttsfrd>=0.1.1
|
||||
unidecode
|
||||
wcwidth>=0.2.5
|
||||
-r audio/audio_asr.txt
|
||||
-r audio/audio_kws.txt
|
||||
-r audio/audio_signal.txt
|
||||
-r audio/audio_tts.txt
|
||||
|
||||
2
requirements/audio/audio_asr.txt
Normal file
2
requirements/audio/audio_asr.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
easyasr>=0.0.2
|
||||
funasr>=0.1.7
|
||||
8
requirements/audio/audio_kws.txt
Normal file
8
requirements/audio/audio_kws.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
kaldiio
|
||||
kwsbp>=0.0.2
|
||||
matplotlib
|
||||
numpy
|
||||
py_sound_connect>=0.1
|
||||
scipy
|
||||
SoundFile>0.10
|
||||
tensorboardX
|
||||
11
requirements/audio/audio_signal.txt
Normal file
11
requirements/audio/audio_signal.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
hyperpyyaml
|
||||
librosa
|
||||
MinDAEC
|
||||
mir_eval>=0.7
|
||||
numpy
|
||||
rotary_embedding_torch>=0.1.5
|
||||
scipy
|
||||
SoundFile>0.10
|
||||
speechbrain>=0.5.7
|
||||
torchaudio
|
||||
tqdm
|
||||
27
requirements/audio/audio_tts.txt
Normal file
27
requirements/audio/audio_tts.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
bitstring
|
||||
greenlet>=1.1.2
|
||||
inflect
|
||||
jedi>=0.18.1
|
||||
librosa
|
||||
lxml
|
||||
matplotlib
|
||||
msgpack>=1.0.4
|
||||
parso>=0.8.3
|
||||
pexpect>=4.8.0
|
||||
pickleshare>=0.7.5
|
||||
prompt-toolkit>=3.0.30
|
||||
protobuf
|
||||
ptflops
|
||||
ptyprocess>=0.7.0
|
||||
pygments>=2.12.0
|
||||
pysptk>=0.1.15,<0.2.0
|
||||
pytorch_wavelets
|
||||
PyWavelets>=1.0.0
|
||||
scikit-learn
|
||||
sox
|
||||
tensorboardx
|
||||
tqdm
|
||||
traitlets>=5.3.0
|
||||
ttsfrd>=0.1.1
|
||||
unidecode
|
||||
wcwidth>=0.2.5
|
||||
9
setup.py
9
setup.py
@@ -83,7 +83,9 @@ def parse_requirements(fname='requirements.txt', with_version=True):
|
||||
if line.startswith('-r '):
|
||||
# Allow specifying requirements in other files
|
||||
target = line.split(' ')[1]
|
||||
for info in parse_require_file(target):
|
||||
relative_base = os.path.dirname(fname)
|
||||
absolute_target = os.path.join(relative_base, target)
|
||||
for info in parse_require_file(absolute_target):
|
||||
yield info
|
||||
else:
|
||||
info = {'line': line}
|
||||
@@ -186,7 +188,10 @@ if __name__ == '__main__':
|
||||
# result in mac/windows compatibility problems
|
||||
if field != Fields.audio:
|
||||
all_requires.append(extra_requires[field])
|
||||
|
||||
for subfiled in ['asr', 'kws', 'signal', 'tts']:
|
||||
filed_name = f'audio_{subfiled}'
|
||||
extra_requires[filed_name], _ = parse_requirements(
|
||||
f'requirements/audio/{filed_name}.txt')
|
||||
extra_requires['all'] = all_requires
|
||||
|
||||
setup(
|
||||
|
||||
Reference in New Issue
Block a user