Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Unable to run stage 1 with FastSpeech2 #111

Closed
caigun opened this issue Jan 16, 2024 · 4 comments
Closed

[BUG]: Unable to run stage 1 with FastSpeech2 #111

caigun opened this issue Jan 16, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@caigun
Copy link

caigun commented Jan 16, 2024

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:

  1. Config/File changes: Only the local path of the dataset
  2. 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
@caigun caigun added the bug Something isn't working label Jan 16, 2024
@lmxue
Copy link
Collaborator

lmxue commented Jan 16, 2024

Hi, what version of librosa are you using?

@lmxue lmxue self-assigned this Jan 16, 2024
@caigun
Copy link
Author

caigun commented Jan 16, 2024

0.10.1

@lmxue
Copy link
Collaborator

lmxue commented Jan 16, 2024

Would you please give the log of the wav_path and sampling_rate in your experiment?

@caigun
Copy link
Author

caigun commented Jan 16, 2024

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)

@caigun caigun closed this as completed Jan 16, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants