Amphion
Amphion copied to clipboard
win10下本地部署,按照顺序安装未报错,但运行gradio时LangSegment出现错误
在win10安装maskgct项目,按照提示pip install -r models/tts/maskgct/requirements.txt,安装了所有依赖,未报错,但是python -m models.tts.maskgct.gradio_demo 运行时报错:(maskgct1) K:\PYTHON\maskgct\Amphion>python -m models.tts.maskgct.gradio_demo
./models/tts/maskgct/g2p\sources\g2p_chinese_model\poly_bert_model.onnx
H:\PYTHON\Anaconda\download\envs\maskgct1\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py:118: UserWarning: Specified provider 'CUDAExecutionProvider' is not in available provider names.Available providers: 'AzureExecutionProvider, CPUExecutionProvider'
warnings.warn(
Traceback (most recent call last):
File "H:\PYTHON\Anaconda\download\envs\maskgct1\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "H:\PYTHON\Anaconda\download\envs\maskgct1\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "K:\PYTHON\maskgct\Amphion\models\tts\maskgct\gradio_demo.py", line 23, in
可能是 LangSegment 版本问题,requirements.txt中并未对LangSegment 的安装版本有说明,安装的 LangSegment 版本为Version: 0.2.0。但实际运行时无法从 LangSegment 模块中导入 setLangfilters 函数。
我是把这个文件里的setLangfilters,getLangfilters删掉了 python3.10/site-packages/LangSegment/init.py
You can also install this builld
pip install git+https://github.com/chameleon-ai/LangSegment-0.3.5-backup.git
This problem affects multiple projects like MaskGCT, Vevo, and Vevosing. The original author of LangSegment deleted or set the repo to private a few weeks ago, and pip has reverted to the last surviving fork at 0.2.0, which unfortunately doesn't work. As @GUUser91 mentioned, I'm hosting a backup of 0.3.5 which can be used as a temporary fix, but the long term fix is to remove the dependency from here because LangSegment is effectively dead: https://github.com/open-mmlab/Amphion/blob/6b1411c7a415af40a775dc940c3b29fc18d37970/models/tts/maskgct/g2p/g2p/init.py#L9
same problem here.