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

FileNotFoundError: [Errno 2] No such file or directory: 'CHECKPOINT' #274

Open
hua74138 opened this issue Nov 28, 2024 · 2 comments
Open

Comments

@hua74138
Copy link

运行inference.py时报错:
FileNotFoundError: [Errno 2] No such file or directory: 'CHECKPOINT'

@Liam203
Copy link

Liam203 commented Dec 5, 2024

你要先创建这个文件夹,然后把文件夹地址放到命令行

@LiWeisuper
Copy link

请问你解决了么?
我创建文件夹后出现权限错误

Traceback (most recent call last):
File "E:\python\myapps\AI\RobustVideoMatting-1.0.0\inference.py", line 193, in
converter = Converter(args.variant, args.checkpoint, args.device)
File "E:\python\myapps\AI\RobustVideoMatting-1.0.0\inference.py", line 164, in init
self.model.load_state_dict(torch.load(checkpoint, map_location=device))
File "C:\ProgramData\anaconda3\envs\rvm\lib\site-packages\torch\serialization.py", line 791, in load
with _open_file_like(f, 'rb') as opened_file:
File "C:\ProgramData\anaconda3\envs\rvm\lib\site-packages\torch\serialization.py", line 271, in _open_file_like
return _open_file(name_or_buffer, mode)
File "C:\ProgramData\anaconda3\envs\rvm\lib\site-packages\torch\serialization.py", line 252, in init
super().init(open(name, mode))
PermissionError: [Errno 13] Permission denied: 'CHECKPOINT'

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

3 participants