Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem when run the code #29

Closed
Holmes-Alan opened this issue Mar 17, 2022 · 4 comments
Closed

problem when run the code #29

Holmes-Alan opened this issue Mar 17, 2022 · 4 comments

Comments

@Holmes-Alan
Copy link

When I run

python main_nerf.py data/fox --workspace trial_nerf --fp16 --ff --cuda_ray --gui

I got the following error,

Traceback (most recent call last):
File "C:\Users\zhisong_liu\Miniconda3\envs\ngp\lib\site-packages\torch\utils\cpp_extension.py", line 1740, in _run_ninja_build
subprocess.run(
File "C:\Users\zhisong_liu\Miniconda3\envs\ngp\lib\subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

I tried to fix the problem on the '['ninja', '-v']' by '['ninja', '--version']', but I got another problem as,

Traceback (most recent call last):
File "main_nerf.py", line 53, in
from nerf.network import NeRFNetwork
File "D:\torch-ngp\nerf\network.py", line 5, in
from encoding import get_encoder
File "D:\torch-ngp\encoding.py", line 5, in
from hashencoder import HashEncoder
File "D:\torch-ngp\hashencoder_init_.py", line 1, in
from .hashgrid import HashEncoder
File "D:\torch-ngp\hashencoder\hashgrid.py", line 9, in
from .backend import _backend
File "D:\torch-ngp\hashencoder\backend.py", line 6, in
_backend = load(name='_hash_encoder',
File "C:\Users\Miniconda3\envs\ngp\lib\site-packages\torch\utils\cpp_extension.py", line 1144, in load
return _jit_compile(
File "C:\Users\Miniconda3\envs\ngp\lib\site-packages\torch\utils\cpp_extension.py", line 1382, in _jit_compile
return _import_module_from_library(name, build_directory, is_python_module)
File "C:\Users\Miniconda3\envs\ngp\lib\site-packages\torch\utils\cpp_extension.py", line 1775, in _import_module_from_library
module = importlib.util.module_from_spec(spec)
ImportError: DLL load failed while importing _hash_encoder: The specified module could not be found.

What should I do?

Originally posted by @Holmes-Alan in #26 (comment)

@ashawkey
Copy link
Owner

Honestly I'm haven't tested it on window, so I'm not familiar with the error.
Could you verify the environment, e.g., torch and ninja version? Could you build other pytorch CUDA extensions, like the tiny-cuda-nn by pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch?
(Still, I would recommend trying to run the program in Linux systems, such as the WSL)

@Holmes-Alan
Copy link
Author

OK. Thank you for your response!

@ziyueju123
Copy link

好的。谢谢你的回复!

Have you solved this problem, and how to solve it? Looking forward to your reply!

@Zdream02
Copy link

Zdream02 commented Nov 7, 2023

好的。谢谢你的回复!

Have you solved this problem, and how to solve it? Looking forward to your reply!
Have you solved this problem, and how to solve it? Looking forward to your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants