Compute embeddings

Hello, I am trying to run the compute_embeddings.py but, I get the following error:

Traceback (most recent call last): File "TTS/bin/compute_embeddings.py", line 100, in <module> model.load_state_dict(torch.load(args.model_path)['model']) File "/home/manuel_servex/tmp/tts-train-venv/lib/python3.7/site-packages/torch/serialization.py", line 579, in load with _open_file_like(f, 'rb') as opened_file: File "/home/manuel_servex/tmp/tts-train-venv/lib/python3.7/site-packages/torch/serialization.py", line 230, in _open_file_like return _open_file(name_or_buffer, mode) File "/home/manuel_servex/tmp/tts-train-venv/lib/python3.7/site-packages/torch/serialization.py", line 211, in __init__ super(_open_file, self).__init__(open(name, mode)) IsADirectoryError: [Errno 21] Is a directory:

From what I understand it is the model_path parameter, which must be a model, if so, is it necessary to do a previous step? or how can I execute the compute_embeddings ?