Compatibility for numpy 2.0 (#3265)

* compat for numpy 2.0

* lint changes
This commit is contained in:
Justin Kerr authored and GitHub committed 2024-06-28 08:07:10 +09:00
1 parent 9b3cbc79bf
commit d6df39b70d
93 files changed
+104 -74

No files matched your search

+1
View File
@@ -1,6 +1,7 @@
"""
Embedding tests
"""
from nerfstudio.field_components.embedding import Embedding
+1
View File
@@ -1,6 +1,7 @@
"""
Encoding Tests
"""
import pytest
import torch
@@ -1,6 +1,7 @@
"""
Field output tests
"""
import pytest
import torch
from torch import nn
+1
View File
@@ -1,6 +1,7 @@
"""
Test the fields
"""
import torch
from nerfstudio.cameras.rays import Frustums, RaySamples
+1
View File
@@ -1,6 +1,7 @@
"""
MLP Test
"""
import torch
from torch import nn
@@ -1,6 +1,7 @@
"""
Test if temporal distortions run properly
"""
import torch
from nerfstudio.field_components.temporal_distortions import DNeRFDistortion