Skip to content

Commit

Permalink
Report tcnn import errors (#1969)
Browse files Browse the repository at this point in the history
  • Loading branch information
tancik authored May 22, 2023
1 parent 3bc160c commit 27e2c87
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion nerfstudio/field_components/encodings.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import tinycudann as tcnn

TCNN_EXISTS = True
except ImportError:
except ModuleNotFoundError:
TCNN_EXISTS = False


Expand Down
2 changes: 1 addition & 1 deletion nerfstudio/fields/instant_ngp_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

try:
import tinycudann as tcnn
except ImportError:
except ModuleNotFoundError:
# tinycudann module doesn't exist
pass

Expand Down
2 changes: 1 addition & 1 deletion nerfstudio/fields/nerfacto_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

try:
import tinycudann as tcnn
except ImportError:
except ModuleNotFoundError:
# tinycudann module doesn't exist
pass

Expand Down
2 changes: 1 addition & 1 deletion nerfstudio/fields/nerfplayer_nerfacto_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

try:
import tinycudann as tcnn
except ImportError:
except ModuleNotFoundError:
# tinycudann module doesn't exist
pass

Expand Down
2 changes: 1 addition & 1 deletion nerfstudio/fields/nerfplayer_ngp_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

try:
import tinycudann as tcnn
except ImportError:
except ModuleNotFoundError:
# tinycudann module doesn't exist
pass

Expand Down
2 changes: 1 addition & 1 deletion nerfstudio/fields/sdf_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

try:
import tinycudann as tcnn
except ImportError:
except ModuleNotFoundError:
# tinycudann module doesn't exist
pass

Expand Down
2 changes: 1 addition & 1 deletion tests/field_components/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_tcnn_instant_ngp_field():
"""Test the tiny-cuda-nn field"""
try:
import tinycudann as tcnn # noqa: F401
except ImportError as e:
except ModuleNotFoundError as e:
# tinycudann module doesn't exist
print(e)
return
Expand Down

0 comments on commit 27e2c87

Please sign in to comment.