Closed HenryOsborne closed 2 years ago
In my case, I solve it by modifying mmcv\utils\config.py:
line 276 to
with tempfile.NamedTemporaryFile('w', suffix=file_format, delete=False) as temp_file:
line 278 to
temp_file.close()
The problem is that temp_file is still busy when program try to read. It's not a perfect solution, you need to delete the temp_file manually or just add some lines to clean up the temp files.
@hhaAndroid Is it a bug? The file need to be closed before read on Windows. My mmcv version is 1.3.3.
Hi @fjfzlzj , Could create a PR in MMCV to fix this issue?
Thanks for your work,but I encounter some problem when I trying to resume from latest training result.
Describe the bug My computer lost power when training,I try to resume but I got a 'PermissionError'.
Reproduction
The command I run as follow:
The
sparse_rcnn_swin_fpn_1x_coco.py
script as follow:I modified the
resume_from
in this scriptEnvironment
Error traceback