descriptinc / melgan-neurips

GAN-based Mel-Spectrogram Inversion Network for Text-to-Speech Synthesis
MIT License
978 stars 214 forks source link

SyntaxError: invalid syntax on torch.load(root / f"models/{model_name}.pt", map_location=device) #5

Open khorshidisamira opened 5 years ago

khorshidisamira commented 5 years ago

Hello, I have installed all requirements but when I run the following command, I am getting a syntax error, would you please help me?

python scripts/train.py --save_path logs/baseline --data_path audio/ Traceback (most recent call last): File "scripts/train.py", line 6, in import mel2wav File "/home/sakhors/MelGan/melgan-neurips-master/mel2wav/init.py", line 1, in from mel2wav.interface import load_model, MelVocoder File "/home/sakhors/MelGan/melgan-neurips-master/mel2wav/interface.py", line 43 torch.load(root / f"models/{model_name}.pt", map_location=device) ^ SyntaxError: invalid syntax

binarythinktank commented 5 years ago

@khorshidisamira are you running it in python3?

aidenjyoon commented 4 years ago

Need to run in python 3.6 or higher.