Traceback (most recent call last):
File "tools/train.py", line 131, in
main()
File "tools/train.py", line 127, in main
logger=logger)
File "/test/competition/cloth/mmdetection/mmdet/apis/train.py", line 60, in train_detector
_non_dist_train(model, dataset, cfg, validate=validate)
File "/test/competition/cloth/mmdetection/mmdet/apis/train.py", line 221, in _non_dist_train
runner.run(data_loaders, cfg.workflow, cfg.total_epochs)
File "/root/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/runner.py", line 358, in run
epoch_runner(data_loaders[i], *kwargs)
File "/root/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/runner.py", line 274, in train
self.call_hook('after_train_epoch')
File "/root/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/runner.py", line 229, in call_hook
getattr(hook, fn_name)(self)
File "/root/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/utils.py", line 37, in wrapper
return func(args, *kwargs)
File "/root/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/hooks/checkpoint.py", line 25, in after_train_epoch
self.out_dir, save_optimizer=self.save_optimizer, *self.args)
File "/root/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/runner.py", line 252, in save_checkpoint
mmcv.symlink(filename, linkpath)
File "/root/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/utils/path.py", line 49, in symlink
os.symlink(src, dst, **kwargs)
OSError: [Errno 95] Operation not supported: 'epoch_1.pth' -> '/test/competition/cloth/mmdetection/work_dirs/ga_retinanet_x101_32x4d_fpn_1x/latest.pth'
hi, have you solved the problem?
hi, have you solved the problem?
no
I just comment the 'os.symlink(src, dst, **kwargs)' in /root/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/utils/path.py
I just comment the 'os.symlink(src, dst, **kwargs)' in /root/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/utils/path.py
got it, thank you!
you should check your folder's filesystem(by 'df -T folder') which supports softlink or not.
Did this work?
File "/miniconda/envs/py36/lib/python3.6/site-packages/mmcv/runner/runner.py", line 252, in save_checkpoint
Find the runner.py ,line 252.Comment the code ' # mmcv.symlink(filename, linkpath) '
Some environments do not support os.symlink so that you can add an argument in the checkpoint_cfg field in config files, like checkpoint_cfg=dict(create_symlink=False).
Most helpful comment
Some environments do not support
os.symlinkso that you can add an argument in the checkpoint_cfg field in config files, likecheckpoint_cfg=dict(create_symlink=False).