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

Issue Running FastSpeech2 Model - FileNotFoundError: 'data/LJSpeech/valid.json' #23

Closed
my-yy opened this issue Dec 11, 2023 · 1 comment
Assignees

Comments

@my-yy
Copy link

my-yy commented Dec 11, 2023

Hi, thank you for developing this excellent project.

I am attempting to execute the FastSpeech2 model using the provided instructions at:
https://github.com/open-mmlab/Amphion/tree/main/egs/tts/FastSpeech2

Upon running the process command sh egs/tts/FastSpeech2/run.sh --stage 1, I encountered the following error: FileNotFoundError: [Errno 2] No such file or directory: 'data/LJSpeech/valid.json'.

Could you please provide guidance on resolving this issue? Your assistance is much appreciated.

Full log:

(amphion) root@5d89psego5dhs-0:/zhangpai21/workspace/cgy/1_projects/7_Amphion# sh egs/tts/FastSpeech2/run.sh --stage 1
/zhangpai21/workspace/cgy/1_projects/7_Amphion/mfa
Exprimental Configuration File: /zhangpai21/workspace/cgy/1_projects/7_Amphion/egs/tts/FastSpeech2/exp_config.json
Preprocess LJSpeech...
Prepare alignment LJSpeech...
13100it [00:01, 10765.15it/s]
MFA results are save in data/LJSpeech/TextGrid
Setting up corpus information...
Number of speakers in corpus: 1, average number of utterances per speaker: 13100.0
Creating dictionary information...
Setting up corpus_data directory...
Generating base features (mfcc)...
Calculating CMVN...
Done with setup.
Done! Everything took 1712.1863117218018 seconds
----------
Dataset splits for LJSpeech...

No Data Augmentation.
----------
Preparing metadata...
Including: 
LJSpeech

  0%|                                                                                                                                 | 0/1 [00:00<?, ?it/s]Singer LJSpeech_LJSpeech: 1363.67 mins for training
---------- 

100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00,  4.77it/s]
Extracting acoustic features for LJSpeech using 4 workers ...
types:  ['train', 'valid', 'test']
Traceback (most recent call last):
  File "/zhangpai21/workspace/cgy/1_projects/7_Amphion/bins/tts/preprocess.py", line 250, in <module>
    main()
  File "/zhangpai21/workspace/cgy/1_projects/7_Amphion/bins/tts/preprocess.py", line 246, in main
    preprocess(cfg, args)
  File "/zhangpai21/workspace/cgy/1_projects/7_Amphion/bins/tts/preprocess.py", line 178, in preprocess
    extract_acoustic_features(dataset, output_path, cfg, args.num_workers)
  File "/zhangpai21/workspace/cgy/1_projects/7_Amphion/bins/tts/preprocess.py", line 44, in extract_acoustic_features
    with open(dataset_file, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data/LJSpeech/valid.json'
@lmxue
Copy link
Collaborator

lmxue commented Dec 12, 2023

@my-yy Thanks for your feedback. We have updated LJSpeech dataset processor in this PR #25 , where this bug is fixed. Please pull the latest code and try it again.

ChenX17 added a commit to ChenX17/Amphion that referenced this issue Dec 12, 2023
ChenX17 added a commit to ChenX17/Amphion that referenced this issue Dec 16, 2023
ChenX17 added a commit to ChenX17/Amphion that referenced this issue Dec 17, 2023
lmxue pushed a commit that referenced this issue Dec 18, 2023
* This PR is to fix the bugs for FS2 on the updated phone_extractor and the issue #23
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants