Open makeukus opened 1 year ago
我尝试使用python310,但是仍然有报错。 $ ./run.sh check oov get mfa result 'mfa_align' is not recognized as an internal or external command, operable program or batch file.
generate durations.txt
extract feature
I:\Github\PaddleSpeech-develop\examples\other\tts_finetune\tts3\local\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,
-2 1
create finetune env
finetune...
C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\win32\lib\pywintypes.py:51: DeprecationWarning: getargs: The 'u' format is deprecated. Use 'U' instead.
found = _win32sysloader.GetModuleFilename(filename)
C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\win32\lib\pywintypes.py:65: DeprecationWarning: getargs: The 'u' format is deprecated. Use 'U' instead.
found = _win32sysloader.LoadModule(filename)
I:\Github\PaddleSpeech-develop\examples\other\tts_finetune\tts3\local\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,
rank: 0, pid: 19092, parent_pid: 21764
multiple speaker fastspeech2!
spk_num: 174
Traceback (most recent call last):
File "I:\Github\PaddleSpeech-develop\examples\other\tts_finetune\tts3\local\finetune.py", line 269, in
我在Centos 7系统上,运行run.sh,仍然有错误。
[root@localhost tts3]# ./run.sh
check oov
get mfa result
align.py:60: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
Setting up corpus information...
Number of speakers in corpus: 1, average number of utterances per speaker: 198.0
/root/\udce6\udca1\udc8c\udce9\udc9d\udca2/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/aligner/models.py:87: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
Creating dictionary information...
fstcompile: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by fstcompile) fstcompile: /lib64/libm.so.6: version
GLIBC_2.23' not found (required by /root/桌面/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/thirdparty/bin/libfstscript.so.13)
fstcompile: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by /root/桌面/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/thirdparty/bin/libfstscript.so.13) fstcompile: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.21' not found (required by /root/桌面/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/thirdparty/bin/libfst.so.13)
fstarcsort: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by fstarcsort) fstarcsort: /lib64/libm.so.6: version
GLIBC_2.23' not found (required by /root/桌面/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/thirdparty/bin/libfstscript.so.13)
fstarcsort: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by /root/桌面/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/thirdparty/bin/libfstscript.so.13) fstarcsort: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.21' not found (required by /root/桌面/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/thirdparty/bin/libfst.so.13)
fstcompile: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by fstcompile) fstcompile: /lib64/libm.so.6: version
GLIBC_2.23' not found (required by /root/桌面/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/thirdparty/bin/libfstscript.so.13)
fstcompile: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by /root/桌面/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/thirdparty/bin/libfstscript.so.13) fstcompile: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.21' not found (required by /root/桌面/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/thirdparty/bin/libfst.so.13)
fstarcsort: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by fstarcsort) fstarcsort: /lib64/libm.so.6: version
GLIBC_2.23' not found (required by /root/桌面/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/thirdparty/bin/libfstscript.so.13)
fstarcsort: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by /root/桌面/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/thirdparty/bin/libfstscript.so.13) fstarcsort: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.21' not found (required by /root/桌面/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/thirdparty/bin/libfst.so.13)
Setting up training data...
Calculating MFCCs...
Traceback (most recent call last):
File "aligner/command_line/align.py", line 186, in
python3.9 Centos 7 64
这是一个悲伤的事情
[root@localhost tts3]# ./run.sh
check oov
get mfa result
align.py:60: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
Setting up corpus information...
Number of speakers in corpus: 1, average number of utterances per speaker: 198.0
/root/develop/PaddleSpeech-develop/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/aligner/models.py:87: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
Creating dictionary information...
Setting up training data...
Calculating MFCCs...
Traceback (most recent call last):
File "aligner/command_line/align.py", line 186, in
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/develop/PaddleSpeech-develop/examples/other/tts_finetune/tts3/local/generate_duration.py", line 17, in scipy
install you are using seems to be broken, (extension modules cannot be imported), please try reinstalling.
CentOS 8 python 3.9
目前看起来是环境问题,你再check下。如果有其他问题可以先在 issue 上搜一下,issue 置顶有小样本微调相关问题及解决方案,可以看下对你有没有帮助。
目前看起来是环境问题,你再check下。如果有其他问题可以先在 issue 上搜一下,issue 置顶有小样本微调相关问题及解决方案,可以看下对你有没有帮助。
应该是,我现在直接在Aistudio上运行了。
@lym0302 遇到同样的问题,我是在paddlespeech的镜像里运行的
get mfa result
align.py:60: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
Setting up corpus information...
Number of speakers in corpus: 1, average number of utterances per speaker: 198.0
/home/examples/other/tts_finetune/tts3/tools/montreal-forced-aligner/lib/aligner/models.py:87: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
Creating dictionary information...
Setting up training data...
Calculating MFCCs...
Traceback (most recent call last):
File "aligner/command_line/align.py", line 186, in <module>
File "aligner/command_line/align.py", line 142, in validate_args
File "aligner/command_line/align.py", line 94, in align_corpus
File "aligner/aligner/pretrained.py", line 74, in __init__
File "aligner/aligner/pretrained.py", line 122, in setup
File "aligner/aligner/base.py", line 89, in setup
File "aligner/corpus.py", line 979, in initialize_corpus
File "aligner/corpus.py", line 852, in create_mfccs
File "aligner/corpus.py", line 863, in _combine_feats
FileNotFoundError: [Errno 2] No such file or directory: '/root/Documents/MFA/newdir/train/mfcc/raw_mfcc.0.scp'
[892] Failed to execute script align
Traceback (most recent call last):
File "local/extract_feature.py", line 352, in <module>
replace_spkid=args.replace_spkid)
File "local/extract_feature.py", line 267, in extract_feature
vocab_speaker, dump_dir, "train")
File "local/extract_feature.py", line 160, in normalize
"energy": np.load,
File "/home/paddlespeech/t2s/datasets/data_table.py", line 45, in __init__
assert len(data) > 0, "This dataset has no examples"
AssertionError: This dataset has no examples
可以把git_mfa_result.py 中51行,CMD语句的mfa_align换成mfa_align.exe的绝对路径, 如c:\xxxxxxxx\tools\montreal-forced-aligner/bin/mfa_align.exe
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
同样的问题:./run_mix.sh
Setting up training data...
Calculating MFCCs...
Traceback (most recent call last):
File "aligner/command_line/align.py", line 186, in
CentOS7 cpu模式跑 (paddle) [root@localhost tts3]# pip list|grep paddle paddle2onnx 1.1.0 paddleaudio 1.1.0 paddlefsl 1.1.0 paddlenlp 2.5.2 paddlepaddle 2.5.2 paddlesde 0.2.5 paddleslim 2.4.1 paddlespeech 0.0.0 paddlespeech-ctcdecoders 0.2.0 paddlespeech-feat 0.1.0
General Question
我按照(文章)的步骤进行操作,运行run.sh有报错
Administrator@DESKTOP-1B5BUG2 MINGW64 /i/Github/PaddleSpeech-develop/examples/other/tts_finetune/tts3 $ ./run.sh check oov get mfa result 'mfa_align' is not recognized as an internal or external command, operable program or batch file. ./input/csmsc_mini/newdir ./mfa_result generate durations.txt Traceback (most recent call last): File "I:\Github\PaddleSpeech-develop\examples\other\tts_finetune\tts3\local\generate_duration.py", line 17, in
from utils.gen_duration_from_textgrid import gen_duration_from_textgrid
File "I:\Github\PaddleSpeech-develop\examples\other\tts_finetune\tts3\local\utils\gen_duration_from_textgrid.py", line 18, in
import librosa
File "I:\Github\PaddleSpeech-develop\examples\other\tts_finetune\tts3\local\librosa__init.py", line 210, in
from ._cache import cache
File "I:\Github\PaddleSpeech-develop\examples\other\tts_finetune\tts3\local\librosa_cache.py", line 6, in
from joblib import Memory
File "I:\Github\PaddleSpeech-develop\examples\other\tts_finetune\tts3\local\joblib__init.py", line 113, in
from .memory import Memory, MemorizedResult, register_store_backend
File "I:\Github\PaddleSpeech-develop\examples\other\tts_finetune\tts3\local\joblib\memory.py", line 32, in
from ._store_backends import StoreBackendBase, FileSystemStoreBackend
File "I:\Github\PaddleSpeech-develop\examples\other\tts_finetune\tts3\local\joblib_store_backends.py", line 15, in
from .backports import concurrency_safe_rename
File "I:\Github\PaddleSpeech-develop\examples\other\tts_finetune\tts3\local\joblib\backports.py", line 125, in
import numpy as np
File "I:\Github\PaddleSpeech-develop\examples\other\tts_finetune\tts3\local\numpy\ init__.py", line 138, in
from . import _distributor_init
File "I:\Github\PaddleSpeech-develop\examples\other\tts_finetune\tts3\local\numpy_distributor_init.py", line 26, in
WinDLL(os.path.abspath(filename))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39-32\lib\ctypes\ init.py", line 374, in init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 不是有效的 Win32 应用程序。
我应该怎样处理?