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

No file named embedder.pt #9

Open
mounika-ghanta opened this issue Jan 19, 2023 · 0 comments
Open

No file named embedder.pt #9

mounika-ghanta opened this issue Jan 19, 2023 · 0 comments

Comments

@mounika-ghanta
Copy link

FileNotFoundError Traceback (most recent call last)
in
1 import os
2 embedder_path = os.path.join(dataset_path,"embedder.pt")
----> 3 embedder_pt = torch.load(embedder_path,map_location=torch.device('cpu'))
4 embedder = SpeechEmbedder(hyper_params)
5 embedder.load_state_dict(embedder_pt)

~.conda\envs\tensorflow11402\lib\site-packages\torch\serialization.py in load(f, map_location, pickle_module, **pickle_load_args)
577 pickle_load_args['encoding'] = 'utf-8'
578
--> 579 with _open_file_like(f, 'rb') as opened_file:
580 if _is_zipfile(opened_file):
581 # The zipfile reader is going to advance the current file position.

~.conda\envs\tensorflow11402\lib\site-packages\torch\serialization.py in _open_file_like(name_or_buffer, mode)
228 def _open_file_like(name_or_buffer, mode):
229 if _is_path(name_or_buffer):
--> 230 return _open_file(name_or_buffer, mode)
231 else:
232 if 'w' in mode:

~.conda\envs\tensorflow11402\lib\site-packages\torch\serialization.py in init(self, name, mode)
209 class _open_file(_opener):
210 def init(self, name, mode):
--> 211 super(_open_file, self).init(open(name, mode))
212
213 def exit(self, *args):

FileNotFoundError: [Errno 2] No such file or directory: 'LibriSpeech Dataset\embedder.pt'

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