Report tcnn import errors (#1969)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2023-05-22 09:36:00 -07:00
1 parent 3bc160cc7d
commit 27e2c874cb
7 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ try:
import tinycudann as tcnn
TCNN_EXISTS = True
except ImportError:
except ModuleNotFoundError:
TCNN_EXISTS = False
+1 -1
View File
@@ -38,7 +38,7 @@ from nerfstudio.fields.base_field import Field, shift_directions_for_tcnn
try:
import tinycudann as tcnn
except ImportError:
except ModuleNotFoundError:
# tinycudann module doesn't exist
pass
+1 -1
View File
@@ -49,7 +49,7 @@ from nerfstudio.fields.base_field import Field, shift_directions_for_tcnn
try:
import tinycudann as tcnn
except ImportError:
except ModuleNotFoundError:
# tinycudann module doesn't exist
pass
@@ -43,7 +43,7 @@ from nerfstudio.fields.base_field import Field, shift_directions_for_tcnn
try:
import tinycudann as tcnn
except ImportError:
except ModuleNotFoundError:
# tinycudann module doesn't exist
pass
+1 -1
View File
@@ -38,7 +38,7 @@ from nerfstudio.fields.base_field import Field, shift_directions_for_tcnn
try:
import tinycudann as tcnn
except ImportError:
except ModuleNotFoundError:
# tinycudann module doesn't exist
pass
+1 -1
View File
@@ -36,7 +36,7 @@ from nerfstudio.fields.base_field import Field, FieldConfig
try:
import tinycudann as tcnn
except ImportError:
except ModuleNotFoundError:
# tinycudann module doesn't exist
pass
+1 -1
View File
@@ -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