记录一下自己遇到的问题和在网上查到的解决办法(更新中。。。如有侵权,请联系博主删除)
1、OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.解决方式:
在train.py中导入库的位置添加代码:
import os os.environ['KMP_DUPLICATE_LIB_OK'] = 'TRUE'2、UserWarning: This call to matplotlib.use() has no effect because the backend has already been chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot,or matplotlib.backends is imported for the first time.
解决方式:
在最开头添加以下代码:
import matplotlib
matplotlib.use('Agg')



