NVIDIA / tacotron2

Tacotron 2 - PyTorch implementation with faster-than-realtime inference
BSD 3-Clause "New" or "Revised" License
5.06k stars 1.38k forks source link

AssertionError on assert os.path.isfile(checkpoint_path) #580

Open Pitr2 opened 1 year ago

Pitr2 commented 1 year ago

Hello, as the title says I'm getting the AssertionError on line 85 of train.py when I try to run the code with

python J:\tacotron2\train.py --output_directory="J:\tacotron\output" --log_directory="J:\tacotron\log" -c tacotron2_statedict.pt --warm_start

I've installed Anaconda3 with Python 3.9, Tensorflow (GPU) 2.6.0 and all the required libraries (librosa, inflect, unidecode, keras). I've also made the modifications to the hparams.py file in order to make it work with Tensorflow2 as suggested by @v-nhandt21 at https://github.com/NVIDIA/tacotron2/issues/278.

What could be the problem? I have a list of 100 WAV files, 22050 Hz 16-bit.

sena-takahashi commented 1 year ago

hello,sorry for my bad english.

I had the same problem, but I solved it, so I will share it. Place "tacotron2_statedict.pt" in tacotron2 folder. Download this published Tacotron 2 model.

ZCzzzzzz commented 1 month ago

hello,did you installed torch?which version?