question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FileNotFoundError: [Errno 2] No such file or directory: './pretrained_models/restlye_e4e.pt'

See original GitHub issue

Error:

FileNotFoundError: [Errno 2] No such file or directory: './pretrained_models/restlye_e4e.pt' when trying to run:

# load restyle-e4e model
restyle_e4e, restyle_e4e_opts = load_model(restyle_e4e_path, is_restyle_encoder=True)
print(f'ReStyle-e4e model successfully loaded!')

In this line:

# load ReStyle e4e:
RESTYLE_E4E_MODELS = {'id': '1e2oXVeBPXMQoUoC_4TNwAWpOPpSEhE_e', 'name': 'restlye_e4e.pt'}

ID 1e2oXVeBPXMQoUoC_4TNwAWpOPpSEhE_e is for “restyle_e4e_ffhq_encode.pt” file. File “restlye_e4e.pt” is nowhere to be found

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yuval-alalufcommented, Dec 2, 2021

@rmokady, I will be adding this feature to the notebooks in this repo as well as some other improvements. It’ll just take me a day or two to get everything up and running 😃

0reactions
yuval-alalufcommented, Dec 2, 2021

Hi everyone, I’ve just made a commit simplifying the inference notebook. The notebook also includes an option to download models via pydrive which should address the Quota limit from Google Drive. I hope this helps address the issues people were facing above. If other issues arise please let us know and we’ll try to address it ,but for now I’m closing this issue. Thanks for your patience!

Read more comments on GitHub >

github_iconTop Results From Across the Web

FileNotFoundError: [Errno 2] No such file or directory [duplicate]
The error is telling you that there is no file of that name in the working directory. Try using the exact, or absolute,...
Read more >
Python FileNotFoundError: [Errno 2] No such file or directory ...
This error tells you that you are trying to access a file or folder that does not exist. To fix this error, check...
Read more >
FileNotFoundError: [Errno 2] No such ... - Net-Informations.Com
No such file or directory " is telling you that there is no file of that name in the working directory. So, try...
Read more >
FileNotFoundError: [Errno 2] No such file or directory
The Python "FileNotFoundError: [Errno 2] No such file or directory" occurs when we try to open a file that doesn't exist in the...
Read more >
How to fix FileNotFoundError Errno 2 no such file or directory
The error FileNotFoundError Errno 2 no such file or directory occurs when Python cannot find the specified file in the current directory.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found