报错1 :
Epoch gpu_mem box obj cls labels img_size
0%| | 0/145 [00:00<?, ?it/s]OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.
解决办法1:
在最上面加上:
import os
os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE"
可以看到程序正常跑起来了。
解决办法2:
找到你安装的Anaconda虚拟环境,搜索当前你使用的虚拟环境,搜索libiomp5md,将多余的删掉,建议删除以前安装的那个,后面会有时间记录,比如我删的就是2021/9/10这个:
这样程序就能正常训练了。
报错2:
RuntimeError: DataLoader worker (pid(s) 17940) exited unexpectedly