You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the tutorials for the example recipe of FastSpeech2 and didn't pass the first stage.
This problem also occurs on my Windows laptop.
How To Reproduce
Steps to reproduce the behavior:
Config/File changes: Only the local path of the dataset
Run command: sh egs/tts/FastSpeech2/run.sh --stage 1
Expected behavior
Data Preparation failed and was interrupted.
Screenshots
See error:
(Amphion) harrywang@Harrys-MacBook-Air Amphion % sh egs/tts/FastSpeech2/run.sh --stage 1
/Users/harrywang/Amphion/mfa
Exprimental Configuration File: /Users/harrywang/Amphion/egs/tts/FastSpeech2/exp_config.json
Preprocess LJSpeech...
Prepare alignment LJSpeech...
0it [00:00, ?it/s]
Traceback (most recent call last):
File "/Users/harrywang/Amphion/bins/tts/preprocess.py", line 244, in
main()
File "/Users/harrywang/Amphion/bins/tts/preprocess.py", line 240, in main
preprocess(cfg, args)
File "/Users/harrywang/Amphion/bins/tts/preprocess.py", line 112, in preprocess
prepare_align(
File "/Users/harrywang/Amphion/preprocessors/processor.py", line 104, in prepare_align
ljspeech.prepare_align(dataset, dataset_path, cfg, output_path)
File "/Users/harrywang/Amphion/preprocessors/ljspeech.py", line 139, in prepare_align
wav, _ = librosa.load(wav_path, sampling_rate) TypeError: load() takes 1 positional argument but 2 were given
Environment Information
Operating System: MacOS 14.2.1 (problem also occur on Windows 11)
Python Version: Python 3.9.15
The text was updated successfully, but these errors were encountered:
Thanks~
Problem solved:
Amphion/preprocessors/ljspeech.py, line 139, in prepare_align:
add a "sr=" before "sampling_rate":
wav, _ = librosa.load(wav_path, sr=sampling_rate)
Describe the bug
I followed the tutorials for the example recipe of FastSpeech2 and didn't pass the first stage.
This problem also occurs on my Windows laptop.
How To Reproduce
Steps to reproduce the behavior:
Expected behavior
Data Preparation failed and was interrupted.
Screenshots
See error:
(Amphion) harrywang@Harrys-MacBook-Air Amphion % sh egs/tts/FastSpeech2/run.sh --stage 1
/Users/harrywang/Amphion/mfa
Exprimental Configuration File: /Users/harrywang/Amphion/egs/tts/FastSpeech2/exp_config.json
Preprocess LJSpeech...
Prepare alignment LJSpeech...
0it [00:00, ?it/s]
Traceback (most recent call last):
File "/Users/harrywang/Amphion/bins/tts/preprocess.py", line 244, in
main()
File "/Users/harrywang/Amphion/bins/tts/preprocess.py", line 240, in main
preprocess(cfg, args)
File "/Users/harrywang/Amphion/bins/tts/preprocess.py", line 112, in preprocess
prepare_align(
File "/Users/harrywang/Amphion/preprocessors/processor.py", line 104, in prepare_align
ljspeech.prepare_align(dataset, dataset_path, cfg, output_path)
File "/Users/harrywang/Amphion/preprocessors/ljspeech.py", line 139, in prepare_align
wav, _ = librosa.load(wav_path, sampling_rate)
TypeError: load() takes 1 positional argument but 2 were given
Environment Information
The text was updated successfully, but these errors were encountered: