HJ-harry / score-MRI

Apache License 2.0
143 stars 23 forks source link

Problem: DLL loading failure when running inference_multi-coil_hybrid.py #10

Open LargeRaindrop opened 1 year ago

LargeRaindrop commented 1 year ago

I would like to run inference_multi-coil_hybrid.py, but I met a problem. I used the command python inference_multi-coil_hybrid.py, and the following texts were given:

C:\Users\Gary\AppData\Local\Programs\Python\Python39\python.exe D:\Code\Python\score-MRI\inference_multi-coil_hybrid.py 
Traceback (most recent call last):
  File "D:\Code\Python\score-MRI\inference_multi-coil_hybrid.py", line 7, in <module>
    from models import ncsnpp
  File "D:\Code\Python\score-MRI\models\ncsnpp.py", line 18, in <module>
    from . import utils, layers, layerspp, normalization
  File "D:\Code\Python\score-MRI\models\layerspp.py", line 20, in <module>
    from . import up_or_down_sampling
  File "D:\Code\Python\score-MRI\models\up_or_down_sampling.py", line 10, in <module>
    from op import upfirdn2d
  File "D:\Code\Python\score-MRI\op\__init__.py", line 1, in <module>
    from .fused_act import FusedLeakyReLU, fused_leaky_relu
  File "D:\Code\Python\score-MRI\op\fused_act.py", line 12, in <module>
    fused = load(
  File "C:\Users\Gary\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\utils\cpp_extension.py", line 1202, in load
    return _jit_compile(
  File "C:\Users\Gary\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\utils\cpp_extension.py", line 1450, in _jit_compile
    return _import_module_from_library(name, build_directory, is_python_module)
  File "C:\Users\Gary\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\utils\cpp_extension.py", line 1844, in _import_module_from_library
    module = importlib.util.module_from_spec(spec)
ImportError: DLL load failed while importing fused: 找不到指定的模块。

I tried googling with the error message, but it didn't help. Here are some environmental information about my computer:

Hardwares: I5-10400F & RTX3060
System: Windows 10 professional 1903
Softwares: Python 3.9.13 & Cuda 11.4 & Nvidia driver 472.84
Packages: Torch 1.12.1+cu113

I would like to know how to solve the problem above.