OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
当出现这个报错时候,可以试一下将numpy的版本降低,我之前的版本是1.22的,将numpy的版本安装为1.19.0后,报错就没有了
安装的方法就是:
pip install numpy==1.19.0
2023-02-11 14:35:47.945419: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2023-02-11 14:35:47.945567: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
optimizer: SGD(lr=0.01) with parameter groups 57 weight(decay=0.0), 64 weight(decay=0.0005), 63 bias
train: Scanning H:\yolov8\ultralytics-main\air-filter\train\labels.cache... 527 images, 0 backgrounds, 0 corrupt: 100%|██████████| 527/527 [00:00<?, ?it/s]
train: WARNING H:\yolov8\ultralytics-main\air-filter\train\images\202.jpg: 1 duplicate labels removed
val: Scanning H:\yolov8\ultralytics-main\air-filter\train\labels.cache... 527 images, 0 backgrounds, 0 corrupt: 100%|██████████| 527/527 [00:00<?, ?it/s]
train: WARNING H:\yolov8\ultralytics-main\air-filter\train\images\202.jpg: 1 duplicate labels removed
Image sizes 640 train, 640 val
Using 0 dataloader workers
Logging results to runs\detect\train5
Starting training for 100 epochs...Epoch GPU_mem box_loss cls_loss dfl_loss Instances Size
0%| | 0/132 [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 wor
karound 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/.
最近在调试yolov8的时候,也出现了这个报错,检查了libiomp5md.dll也没有解决这个问题,用同样的方法,将奴秒朋友的版本降低就没有报错了