Hello everyone, I encountered a problem in the training that I could not save the weight. I was given the following error. I hope everyone can help me.Thank you.
Traceback (most recent call last):
Traceback (most recent call last):
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\site-packages\tensorboardX\record_writer.py”, line 39, in directory_check
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\site-packages\tensorboardX\record_writer.py”, line 39, in directory_check
factory = REGISTERED_FACTORIES[prefix]
factory = REGISTERED_FACTORIES[prefix]
KeyError: ‘./exp/05-30_20-16_vggSFCN__1e-05_GCCTrue’
During handling of the above exception, another exception occurred:
KeyError: ‘./exp/05-30_20-16_vggSFCN__1e-05_GCCTrue’
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
File “”, line 1, in 
Traceback (most recent call last):
File “”, line 1, in 
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\multiprocessing\spawn.py”, line 105, in spawn_main
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\multiprocessing\spawn.py”, line 105, in spawn_main
exitcode = _main(fd)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\multiprocessing\spawn.py”, line 114, in _main
prepare(preparation_data)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\multiprocessing\spawn.py”, line 225, in prepare
exitcode = _main(fd)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\multiprocessing\spawn.py”, line 114, in _main
_fixup_main_from_path(data[‘init_main_from_path’])
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\multiprocessing\spawn.py”, line 277, in _fixup_main_from_path
run_name=“mp_main”)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\runpy.py”, line 263, in run_path
prepare(preparation_data)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\multiprocessing\spawn.py”, line 225, in prepare
pkg_name=pkg_name, script_name=fname)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\runpy.py”, line 96, in _run_module_code
_fixup_main_from_path(data[‘init_main_from_path’])
mod_name, mod_spec, pkg_name, script_name)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\multiprocessing\spawn.py”, line 277, in _fixup_main_from_path
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “D:\zgy\GCC\GCC-SFCN-master\train.py”, line 26, in 
writer = SummaryWriter(cfg.TRAIN.EXP_PATH+ ‘/’ + exp_name)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\site-packages\tensorboardX\writer.py”, line 279, in init
run_name=“mp_main”)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\runpy.py”, line 263, in run_path
self.file_writer = FileWriter(logdir=log_dir, **kwargs)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\site-packages\tensorboardX\writer.py”, line 201, in init
logdir, max_queue, flush_secs, filename_suffix)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\site-packages\tensorboardX\event_file_writer.py”, line 108, in init
pkg_name=pkg_name, script_name=fname)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\runpy.py”, line 96, in _run_module_code
directory_check(self._logdir)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\site-packages\tensorboardX\record_writer.py”, line 43, in directory_check
os.makedirs(path)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\os.py”, line 220, in makedirs
mod_name, mod_spec, pkg_name, script_name)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\runpy.py”, line 85, in _run_code
mkdir(name, mode)
FileExistsError: [WinError 183] 当文件已存在时，无法创建该文件。: ‘./exp/05-30_20-16_vggSFCN__1e-05_GCCTrue’
exec(code, run_globals)
File “D:\zgy\GCC\GCC-SFCN-master\train.py”, line 26, in 
writer = SummaryWriter(cfg.TRAIN.EXP_PATH+ ‘/’ + exp_name)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\site-packages\tensorboardX\writer.py”, line 279, in init
self.file_writer = FileWriter(logdir=log_dir, **kwargs)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\site-packages\tensorboardX\writer.py”, line 201, in init
logdir, max_queue, flush_secs, filename_suffix)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\site-packages\tensorboardX\event_file_writer.py”, line 108, in init
directory_check(self._logdir)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\site-packages\tensorboardX\record_writer.py”, line 43, in directory_check
os.makedirs(path)
File “D:\Program Files\Anaconda3\envs\lei\envs\py36-pytorch\lib\os.py”, line 220, in makedirs
mkdir(name, mode)
FileExistsError: [WinError 183] 当文件已存在时，无法创建该文件。: ‘./exp/05-30_20-16_vggSFCN__1e-05_GCCTrue’