mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-19 22:25:44 +08:00
Fix import error when tcnn installed but CUDA runtime not available (#2429)
This commit is contained in:
1 parent
7269a7ee16
commit
ef2fd3dbe1
6 files changed
+68
-26
No files matched your search
@@ -33,12 +33,7 @@ from nerfstudio.field_components.encodings import NeRFEncoding
|
||||
from nerfstudio.field_components.field_heads import FieldHeadNames
|
||||
from nerfstudio.field_components.spatial_distortions import SpatialDistortion
|
||||
from nerfstudio.fields.base_field import Field, FieldConfig
|
||||
|
||||
try:
|
||||
import tinycudann as tcnn
|
||||
except ModuleNotFoundError:
|
||||
# tinycudann module doesn't exist
|
||||
pass
|
||||
from nerfstudio.utils.external import tcnn
|
||||
|
||||
|
||||
class LearnedVariance(nn.Module):
|
||||
|
||||
Reference in new issue
Block a user