amazon-science / patchcore-inspection

Apache License 2.0
691 stars 142 forks source link

OMP: Error #15: Initializing libomp140.x86_64.dll, but found libiomp5md.dll already initialized. #98

Open genzhengmiaohong opened 2 months ago

genzhengmiaohong commented 2 months ago

windows, my python version=3.10, torch=1.13.0+cu116, torchvision=0.14.0+cu116, how can i fix this?

zwl8979 commented 2 months ago

I encountered the same problem, could you please solve it? @genzhengmiaohong

genzhengmiaohong commented 2 months ago

I added os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE" at the beginning of common.py and it worked, but it didn't essentially solve the problem.

I encountered the same problem, could you please solve it? @genzhengmiaohong