FileNotFoundError: [Errno 2] No such file or directory: './pretrained_models/restlye_e4e.pt'
See original GitHub issueError:
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:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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 😃
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!