PyCharm
PyTorch deep learing project
author:zoxiii
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
找到Anaconda的虚拟环境的路径,我的路径是D:\Apps\Anaconda3\envs
,在虚拟环境的路径对文件libiomp5md.dll进行搜索,会发现多个该文件。保留一个pytorch目录下的即可,另一个可以删除。
ValueError: num_samples should be a positive integer value, but got num_samples=0
页面文件太小,无法完成操作。 Error loading "D:\Apps\Anaconda3\envs\deblur\lib\site-packages\torch\lib\shm.dll" or one of its dependencies.
Traceback (most recent call last):
File "" , line 1, in <module>
File "D:\Apps\Anaconda3\envs\mypytorch\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "D:\Apps\Anaconda3\envs\mypytorch\lib\multiprocessing\spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
EOFError: Ran out of input
Could not load library cudnn_cnn_infer64_8.dll. Error code 126
Please make sure cudnn_cnn_infer64_8.dll is in your library path!
查阅自己的电脑是有这个文件的,但不知为何它查不到(我的cuda和cudnn都是11.5版本是对应的)
C:\Windows\System32
位置下面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 link
ed into the program. That is dangerous, since it can degrade performance or ca
use incorrect results. The best thing to do is to ensure that only a single Op
enMP runtime is linked into the process, e.g. by avoiding static linking of th
e OpenMP runtime in any library. As an unsafe, unsupported, undocumented worka
round 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 pro
duce incorrect results. For more information, please see http://www.intel.com/software/products/support/.
libiomp5md.dll
文件libiomp5md.dll
文件, 其中一个是torch路径下的,另一个是虚拟环境本身路径中的libiomp5md.dll
文件(怕之后出问题也可将该文件备份在其他位置)FutureWarning: `multichannel` is a deprecated argument name for `pyramid_gaussian`. It will be removed in version 1.0. Please use `channel_axis` instead.
import warnings
warnings.filterwarnings('ignore')
Can't pickle local object 'MultiSaver.begin_background.<locals>.t'
import os
import datetime
logname = os.path.join(log_dir, datetime.datetime.now().isoformat()+'.txt')
with open(logname, 'a') as f:
f.write('\n')
......
logname = os.path.join(log_dir, datetime.datetime.now().strftime('%Y-%m-%d-%H-%M-%S')+'.txt')
UserWarning: Detected call of `lr_scheduler.step()` before `optimizer.step()`. In PyTorch 1.1.0 and later, you should call them in the opposite order: `optimizer.step()` before `lr_scheduler.step()`. Failure to do this will result in PyTorch skipping the first value of the learning rate schedule.