-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
mmcv _file2dict shutil.copyfile PermissionError: [Errno 13] Permission denied #2926
Comments
I have the same problem. Have you solved it |
I've got same error too !!! |
I've solved it with these tricks : (its not good way but you could run it!)
with:
and then copy config fime behind |
Also got this problem. No idea what is the cause of this, but I solved it by changing two lines This: changed to this: And: To: No idea what is going on, but whenever suffix argument is different from actual file extension - everything works and every time file extension is the same as suffix argument I get this permission denied error. |
replace :
with
it works for me |
import matplotlib; matplotlib.use('Agg')
Traceback (most recent call last):
File "demo/image_demo.py", line 26, in
main()
File "demo/image_demo.py", line 18, in main
model = init_detector(args.config, args.checkpoint, device=args.device)
File "d:\python\pycharm\pycharmprojects\mmdetection\mmdet\apis\inference.py", line 28, in init_detector
config = mmcv.Config.fromfile(config)
File "D:\python\Python36\lib\site-packages\mmcv\utils\config.py", line 165, in fromfile
cfg_dict, cfg_text = Config._file2dict(filename)
File "D:\python\Python36\lib\site-packages\mmcv\utils\config.py", line 92, in _file2dict
osp.join(temp_config_dir, temp_config_name))
File "D:\python\Python36\lib\shutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\Users\XXX\AppData\Local\Temp\tmp_lu6u3id\tmpo9exnnds.py'
The text was updated successfully, but these errors were encountered: