CODEJIN / NaturalSpeech2

MIT License
140 stars 15 forks source link

Train.py Execution Error Questions #10

Closed CHK-0000 closed 2 months ago

CHK-0000 commented 8 months ago

python Train.py -hp C:\NaturalSpeech2\Hyper_Parameters.yaml -s 4 Running with the following command will result in an error


Traceback (most recent call last): File "c:\NaturalSpeech2\Train.py", line 717, in trainer = Trainer(hp_path= args.hyper_parameters, steps= args.steps) File "c:\NaturalSpeech2\Train.py", line 60, in init self.Dataset_Generate() File "c:\NaturalSpeech2\Train.py", line 88, in Dataset_Generate self.latent_min = min([x['Min'] for x in latent_info_dict.values()]) ValueError: min() arg is an empty sequence

CODEJIN commented 8 months ago

Hello. According to the error message you wrote, it appears that the dataset was not created properly. Were there any problems when creating the dataset with the pattern generator? Check if 'Latent_Info.yaml' is in the path of 'Latent_Info_Path' in 'Hyper_Parameters.yaml', and check how many speakers there are. If there is no one, there appears to have been a problem while creating the dataset.