I was trying to run the Python code from this page:

  
      
      pytorch.org
  
  
    

PyTorch 1

An open source deep learning platform that provides a seamless path from research prototyping to production deployment.


  
  
    
    
  
  


But when the Python interpreter gets to the line “waveglow = torch.hub.load(‘nvidia/DeepLearningExamples:torchhub’, ‘nvidia_waveglow’)”
I get the following error:
Traceback (most recent call last):
File “C:/Users/Public/Documents/Python/PycharmProjects/PyTorchTacotron2/TacotronTest.py”, line 10, in 
waveglow = torch.hub.load(‘nvidia/DeepLearningExamples:torchhub’, ‘nvidia_waveglow’)
File “C:\Users\solargravity\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\hub.py”, line 363, in load
model = entry(*args, **kwargs)
File “C:\Users\solargravity/.cache\torch\hub\nvidia_DeepLearningExamples_torchhub/hubconf.py”, line 197, in nvidia_waveglow
ckpt = torch.load(ckpt_file)
File “C:\Users\solargravity\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\serialization.py”, line 386, in load
return _load(f, map_location, pickle_module, **pickle_load_args)
File “C:\Users\solargravity\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\serialization.py”, line 580, in _load
deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly)
RuntimeError: unexpected EOF, expected 1439144 more bytes. The file might be corrupted.
Process finished with exit code -1073740791 (0xC0000409)
I tried deleting the nvidia_DeepLearningExamples_torchhub directory which the code downloaded so that a new download is initiated but I still keep getting the same error.  Has anyone had this issue before?  I’m running Windows 10 and Python 3.7.