From cbe2ea7e07cbf364827bd89cefc42b3f643ea3be Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期一, 18 三月 2024 23:59:09 +0800
Subject: [PATCH] paraformer streaming bugfix
---
setup.py | 26 +++++++++++++++++++-------
1 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/setup.py b/setup.py
index f4439b0..5cb5665 100644
--- a/setup.py
+++ b/setup.py
@@ -14,16 +14,14 @@
"librosa",
"jamo", # For kss
"PyYAML>=5.1.2",
- # "soundfile>=0.12.1",
+ "soundfile>=0.12.1",
"kaldiio>=2.17.0",
"torch_complex",
# "nltk>=3.4.5",
- # ASR
"sentencepiece", # train
"jieba",
- # "rotary_embedding_torch",
+ "rotary_embedding_torch",
# "ffmpeg-python",
- # TTS
# "pypinyin>=0.44.0",
# "espnet_tts_frontend",
# ENH
@@ -37,15 +35,15 @@
# "textgrid",
# "protobuf",
"tqdm",
- "hdbscan",
- "umap",
+ "umap_learn",
"jaconv",
"hydra-core>=1.3.2",
+ "tensorboardX",
+ "rotary_embedding_torch",
],
# train: The modules invoked when training only.
"train": [
"editdistance",
- "tensorboardX",
],
# all: The modules should be optionally installled due to some reason.
# Please consider moving them to "install" occasionally
@@ -54,6 +52,7 @@
"torch_optimizer",
"fairscale",
"transformers",
+ "openai-whisper"
],
"setup": [
"numpy",
@@ -83,8 +82,20 @@
"sphinx-markdown-tables>=0.0.12",
"configargparse>=1.2.1"
],
+ "llm":[
+ "transformers>=4.32.0",
+ "accelerate",
+ "tiktoken",
+ "einops",
+ "transformers_stream_generator>=0.0.4",
+ "scipy",
+ "torchvision",
+ "pillow",
+ "matplotlib",
+ ],
}
requirements["all"].extend(requirements["train"])
+requirements["all"].extend(requirements["llm"])
requirements["test"].extend(requirements["train"])
install_requires = requirements["install"]
@@ -129,5 +140,6 @@
],
entry_points={"console_scripts": [
"funasr = funasr.bin.inference:main_hydra",
+ "funasr-export = funasr.bin.export:main_hydra",
]},
)
--
Gitblit v1.9.1