mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-12 10:55:57 +08:00
Report tcnn import errors (#1969)
This commit is contained in:
1 parent
3bc160cc7d
commit
27e2c874cb
7 files changed
+7
-7
No files matched your search
@@ -34,7 +34,7 @@ try:
|
||||
import tinycudann as tcnn
|
||||
|
||||
TCNN_EXISTS = True
|
||||
except ImportError:
|
||||
except ModuleNotFoundError:
|
||||
TCNN_EXISTS = False
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user