ashawkey / torch-ngp

A pytorch CUDA extension implementation of instant-ngp (sdf and nerf), with a GUI.
MIT License
2.11k stars 275 forks source link

fail to import shencoder after run torch-ngp several times #147

Closed ShadowBbBb closed 1 year ago

ShadowBbBb commented 1 year ago

I already successfully run torch-ngp several times, and a new problem occured this time. Here is the detail bug report:

Traceback (most recent call last): File "D:\research\torch-ngp\shencoder\sphere_harmonics.py", line 10, in import _shencoder as _backend ModuleNotFoundError: No module named '_shencoder'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main_nerf.py", line 93, in model = NeRFNetwork( File "D:\research\torch-ngp\nerf\network.py", line 52, in init self.encoder_dir, self.in_dim_dir = get_encoder(encoding_dir) File "D:\research\torch-ngp\encoding.py", line 60, in get_encoder from shencoder import SHEncoder File "D:\research\torch-ngp\shencoder__init__.py", line 1, in from .sphere_harmonics import SHEncoder File "D:\research\torch-ngp\shencoder\sphere_harmonics.py", line 12, in from .backend import _backend File "D:\research\torch-ngp\shencoder\backend.py", line 32, in _backend = load(name='_sh_encoder', File "D:\Anaconda\envs\torch-ngp\lib\site-packages\torch\utils\cpp_extension.py", line 1144, in load return _jit_compile( File "D:\Anaconda\envs\torch-ngp\lib\site-packages\torch\utils\cpp_extension.py", line 1371, in _jit_compile baton.wait() File "D:\Anaconda\envs\torch-ngp\lib\site-packages\torch\utils\file_baton.py", line 42, in wait time.sleep(self.wait_seconds) KeyboardInterrupt

ShadowBbBb commented 1 year ago

Repo: stupid question, as i run torch-ngp in wrong environment