Thanks for your error report and we appreciate it a lot.
Checklist
- I have searched related issues but cannot get the expected help.
- The bug has not been fixed in the latest version.
Describe the bug
While running train.py, the epoch runs, but when the time to save checkpoint is reached, I get:
OSError Traceback (most recent call last)
in ()
----> 1 train_detector(model, datasets, cfg, distributed=distributed, validate=validate, timestamp=timestamp, meta=meta)
7 frames
/content/packages/mmcv/utils/path.py in symlink(src, dst, overwrite, **kwargs)
36 if os.path.lexists(dst) and overwrite:
37 os.remove(dst)
---> 38 os.symlink(src, dst, **kwargs)
39
40
OSError: [Errno 95] Operation not supported: 'epoch_1.pth' -> '/content/gdrive/My Drive/Developer/Project_1/checkpoints/resnet_retina/epoch_1.pth'
Checking the issues, I find that I have to set create_symlink=False in runner.py in mmcv.runner.
I set create_symlink=False and rerun the code. Then the epoch does not run and I get the error:
RuntimeError: cuda runtime error (209) : no kernel image is available for execution on the device at mmdet/ops/sigmoid_focal_loss/src/cuda/sigmoid_focal_loss_cuda.cu:128
I don't understand what am I doing wrong.
Reproduction
- Did you make any modifications on the code or config? Did you understand what you have modified?
- What dataset did you use?
Environment
- Please run
python mmdet/utils/collect_env.py to collect necessary environment infomation and paste it here.
- You may add addition that may be helpful for locating the problem, such as
- How you installed PyTorch [e.g., pip, conda, source]
- Other environment variables that may be related (such as
$PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)
Error traceback
If applicable, paste the error trackback here.
A placeholder for trackback.
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug
While running
train.py, the epoch runs, but when the time to save checkpoint is reached, I get:Checking the issues, I find that I have to set
create_symlink=Falsein runner.py in mmcv.runner.I set
create_symlink=Falseand rerun the code. Then the epoch does not run and I get the error:I don't understand what am I doing wrong.
Reproduction
Environment
python mmdet/utils/collect_env.pyto collect necessary environment infomation and paste it here.$PATH,$LD_LIBRARY_PATH,$PYTHONPATH, etc.)Error traceback
If applicable, paste the error trackback here.
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!