mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-30 04:50:16 +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
|
import tinycudann as tcnn
|
||||||
|
|
||||||
TCNN_EXISTS = True
|
TCNN_EXISTS = True
|
||||||
except ImportError:
|
except ModuleNotFoundError:
|
||||||
TCNN_EXISTS = False
|
TCNN_EXISTS = False
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ from nerfstudio.fields.base_field import Field, shift_directions_for_tcnn
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import tinycudann as tcnn
|
import tinycudann as tcnn
|
||||||
except ImportError:
|
except ModuleNotFoundError:
|
||||||
# tinycudann module doesn't exist
|
# tinycudann module doesn't exist
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ from nerfstudio.fields.base_field import Field, shift_directions_for_tcnn
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import tinycudann as tcnn
|
import tinycudann as tcnn
|
||||||
except ImportError:
|
except ModuleNotFoundError:
|
||||||
# tinycudann module doesn't exist
|
# tinycudann module doesn't exist
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ from nerfstudio.fields.base_field import Field, shift_directions_for_tcnn
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import tinycudann as tcnn
|
import tinycudann as tcnn
|
||||||
except ImportError:
|
except ModuleNotFoundError:
|
||||||
# tinycudann module doesn't exist
|
# tinycudann module doesn't exist
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ from nerfstudio.fields.base_field import Field, shift_directions_for_tcnn
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import tinycudann as tcnn
|
import tinycudann as tcnn
|
||||||
except ImportError:
|
except ModuleNotFoundError:
|
||||||
# tinycudann module doesn't exist
|
# tinycudann module doesn't exist
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ from nerfstudio.fields.base_field import Field, FieldConfig
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import tinycudann as tcnn
|
import tinycudann as tcnn
|
||||||
except ImportError:
|
except ModuleNotFoundError:
|
||||||
# tinycudann module doesn't exist
|
# tinycudann module doesn't exist
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ def test_tcnn_instant_ngp_field():
|
|||||||
"""Test the tiny-cuda-nn field"""
|
"""Test the tiny-cuda-nn field"""
|
||||||
try:
|
try:
|
||||||
import tinycudann as tcnn # noqa: F401
|
import tinycudann as tcnn # noqa: F401
|
||||||
except ImportError as e:
|
except ModuleNotFoundError as e:
|
||||||
# tinycudann module doesn't exist
|
# tinycudann module doesn't exist
|
||||||
print(e)
|
print(e)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in new issue
Block a user