Ruyi-Zha / naf_cbct

MIT License
106 stars 20 forks source link

Error running the train file #3

Closed Peacepppp closed 1 year ago

Peacepppp commented 1 year ago

Hello, when I ran the train file, the following problems occurred, how can I solve it? D:\Anaconda\envs\naf\python.exe E:/TIGRE/Python/naf_cbct/train.py ['E:\TIGRE\Python\naf_cbct\src\encoder\hashencoder\src\hashencoder.cu', 'E:\TIGRE\Python\naf_cbct\src\encoder\hashencoder\src\bindings.cpp'] Traceback (most recent call last): File "E:\TIGRE\Python\naf_cbct\train.py", line 14, in from src.trainer import Trainer File "E:\TIGRE\Python\naf_cbct\src\trainer.py", line 12, in from .encoder import get_encoder File "E:\TIGRE\Python\naf_cbct\src\encoder__init__.py", line 1, in from .hashencoder import HashEncoder File "E:\TIGRE\Python\naf_cbct\src\encoder\hashencoder__init__.py", line 1, in from .hashgrid import HashEncoder File "E:\TIGRE\Python\naf_cbct\src\encoder\hashencoder\hashgrid.py", line 8, in from .backend import _backend File "E:\TIGRE\Python\naf_cbct\src\encoder\hashencoder\backend.py", line 6, in _backend = load(name='_hash_encoder', File "D:\Anaconda\envs\naf\lib\site-packages\torch\utils\cpp_extension.py", line 1082, in load return _jit_compile( File "D:\Anaconda\envs\naf\lib\site-packages\torch\utils\cpp_extension.py", line 1320, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "D:\Anaconda\envs\naf\lib\site-packages\torch\utils\cpp_extension.py", line 1705, in _import_module_from_library module = importlib.util.module_from_spec(spec) ImportError: DLL load failed while importing _hash_encoder: 找不到指定的模块。

Process finished with exit code 1

Ruyi-Zha commented 1 year ago

Hi, it seems an issue with the hash encoder. You may find solutions here or here.

Peacepppp commented 1 year ago

Ok, thanks for your reply! I will try.

amberhappy commented 5 months ago

Same problem!