jerryuhoo / VTuberTalk

Apache License 2.0
372 stars 53 forks source link

文本生成问题 #21

Open QuenTinYJT opened 2 years ago

QuenTinYJT commented 2 years ago

我自行对视频进行分段、提取WAV以及降噪之后进行2.4步,出现如下错误:

PS D:\MockingBird\VTuberTalk-main> python tools/gen_text.py --path D:\MockingBird\VTuberTalk-main\data\wav_temp\mayumi\split --lang zh
D:\Anaconda\lib\site-packages\librosa\core\constantq.py:1059: DeprecationWarning: np.complex is a deprecated alias for the builtin complex. To silence this warning, use complex by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.complex128 here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations dtype=np.complex, [nltk_data] Error loading averaged_perceptron_tagger: <urlopen error [nltk_data] [Errno 11004] getaddrinfo failed> [nltk_data] Error loading cmudict: <urlopen error [Errno 11004] [nltk_data] getaddrinfo failed> 0it [00:00, ?it/s]

请问一下这该如何解决,谢谢!!!

jerryuhoo commented 2 years ago

应该是下载nltk相关的文件失败了,可能需要代理,或者多试几次

QuenTinYJT commented 2 years ago

我把这一步跳过了,改用奶糖大佬的方法生成字幕,现在我在进行单人训练的时候发现了下面的错误:

Traceback (most recent call last): File "D:\Anaconda\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "D:\Anaconda\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "D:\Anaconda\Scripts\mfa.exe__main__.py", line 7, in File "D:\Anaconda\lib\site-packages\montreal_forced_aligner\command_line\mfa.py", line 1036, in main check_third_party() File "D:\Anaconda\lib\site-packages\montreal_forced_aligner\utils.py", line 150, in check_third_party raise ThirdpartyError("sox") montreal_forced_aligner.exceptions.ThirdpartyError: ThirdpartyError:

Could not find 'sox'. Please ensure that you have installed MFA's conda dependencies and are in the correct environment.

不过我是用着conda来安装MFA,目前这个错误有些不太理解

handsome1238 commented 1 year ago

你第一个问题我刚刚也遇到了,首先是要代理,然后还要把D:\Anaconda\lib\site-packages\librosa\core\constantq.py的1059里面的np.complex改成np.complex128,其实报错里面也提到啦