以下是我的报错
Traceback (most recent call last):
File "e:\tool\anaconda\envs\openmmlab\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "e:\tool\anaconda\envs\openmmlab\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "c:\Users\23982\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher/../..\debugpy\__main__.py", line 71, in <module>
cli.main()
File "c:\Users\23982\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 501, in main
run()
File "c:\Users\23982\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 351, in run_file
runpy.run_path(target, run_name="__main__")
File "c:\Users\23982\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 310, in run_path
return _run_module_code(code, init_globals, run_name, pkg_name=pkg_name, script_name=fname)
File "c:\Users\23982\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 127, in _run_module_code
_run_code(code, mod_globals, init_globals, mod_name, mod_spec, pkg_name, script_name)
File "c:\Users\23982\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 118, in _run_code
exec(code, run_globals)
File "E:\科研\算法\mmdetection\tools\train.py", line 126, in <module>
main()
File "E:\科研\算法\mmdetection\tools\train.py", line 115, in main
runner = Runner.from_cfg(cfg)
File "e:\tool\anaconda\envs\openmmlab\lib\site-packages\mmengine\runner\runner.py", line 462, in from_cfg
runner = cls(
File "e:\tool\anaconda\envs\openmmlab\lib\site-packages\mmengine\runner\runner.py", line 418, in __init__
self.visualizer.add_config(self.cfg)
File "e:\tool\anaconda\envs\openmmlab\lib\site-packages\mmengine\dist\utils.py", line 427, in wrapper
return func(*args, **kwargs)
File "e:\tool\anaconda\envs\openmmlab\lib\site-packages\mmengine\visualization\visualizer.py", line 1071, in add_config
vis_backend.add_config(config, **kwargs)
File "e:\tool\anaconda\envs\openmmlab\lib\site-packages\mmengine\visualization\vis_backend.py", line 57, in wrapper
obj._init_env() # type: ignore
File "e:\tool\anaconda\envs\openmmlab\lib\site-packages\mmengine\visualization\vis_backend.py", line 557, in _init_env
self._tensorboard = SummaryWriter(self._save_dir)
File "e:\tool\anaconda\envs\openmmlab\lib\site-packages\torch\utils\tensorboard\writer.py", line 243, in __init__
self._get_file_writer()
File "e:\tool\anaconda\envs\openmmlab\lib\site-packages\torch\utils\tensorboard\writer.py", line 273, in _get_file_writer
self.file_writer = FileWriter(
File "e:\tool\anaconda\envs\openmmlab\lib\site-packages\torch\utils\tensorboard\writer.py", line 72, in __init__
self.event_writer = EventFileWriter(
File "e:\tool\anaconda\envs\openmmlab\lib\site-packages\tensorboard\summary\writer\event_file_writer.py", line 72, in __init__
tf.io.gfile.makedirs(logdir)
File "e:\tool\anaconda\envs\openmmlab\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 513, in recursive_create_dir_v2
_pywrap_file_io.RecursivelyCreateDir(compat.path_to_bytes(path))
tensorflow.python.framework.errors_impl.FailedPreconditionError: E:\科研\算法\mmdetection\work_dirs\fish_cascade-mask-rcnn_r50_fpn\20241129_130510\vis_data is not a directory
我明明具有这个目录,但还是说目录不存在
分析得出,路径中不能有中文字符,将中文换成英文即可正常运行