Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running pre-trained NSVR #4

Closed
kether82 opened this issue May 26, 2022 · 1 comment
Closed

Running pre-trained NSVR #4

kether82 opened this issue May 26, 2022 · 1 comment

Comments

@kether82
Copy link

Hello, I am trying to run the pre-trained NSVR. After successfully installing requirements, running "python main.py" results in a EOFError. Here is the produced traceback:

Traceback (most recent call last):
File "main.py", line 172, in
testee = eval(test_name)(device=device)
File "main.py", line 114, in init
super(NVSRPostProcTestee, self).init(device)
File "main.py", line 56, in init
self.model = Model(channels=1)
File "\ssr_eval-main\examples\NVSR\nvsr_unet.py", line 84, in init
self.vocoder = Vocoder(sample_rate=44100).to(device)
File "E:\Anaconda\lib\site-packages\voicefixer\vocoder\base.py", line 14, in init
self._load_pretrain(Config.ckpt)
File "E:\Anaconda\lib\site-packages\voicefixer\vocoder\base.py", line 19, in _load_pretrain
checkpoint = load_checkpoint(pth, torch.device("cpu"))
File "E:\Anaconda\lib\site-packages\voicefixer\vocoder\model\util.py", line 92, in load_checkpoint
checkpoint = torch.load(checkpoint_path, map_location=device)
File "E:\Anaconda\lib\site-packages\torch\serialization.py", line 713, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "E:\Anaconda\lib\site-packages\torch\serialization.py", line 920, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
EOFError: Ran out of input

@kether82 kether82 closed this as completed Jun 1, 2022
@kether82
Copy link
Author

kether82 commented Jun 1, 2022

This was caused by not having downloaded the pretrained models properly in .cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant