mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 13:28:59 +08:00
Compatibility for numpy 2.0 (#3265)
* compat for numpy 2.0 * lint changes
This commit is contained in:
1 parent
9b3cbc79bf
commit
d6df39b70d
93 files changed
+104
-74
No files matched your search
@@ -13,6 +13,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
"""init field modules"""
|
||||
|
||||
from .base_field_component import FieldComponent as FieldComponent
|
||||
from .encodings import Encoding as Encoding, ScalingAndOffset as ScalingAndOffset
|
||||
from .mlp import MLP as MLP
|
||||
@@ -15,6 +15,7 @@
|
||||
"""
|
||||
The field module baseclass.
|
||||
"""
|
||||
|
||||
from abc import abstractmethod
|
||||
from typing import Optional
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
Code for embeddings.
|
||||
"""
|
||||
|
||||
|
||||
import torch
|
||||
from jaxtyping import Shaped
|
||||
from torch import Tensor
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
"""
|
||||
Collection of render heads
|
||||
"""
|
||||
|
||||
from enum import Enum
|
||||
from typing import Callable, Optional, Union
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
"""
|
||||
Multi Layer Perceptron
|
||||
"""
|
||||
|
||||
from typing import Literal, Optional, Set, Tuple, Union
|
||||
|
||||
import numpy as np
|
||||
|
||||
Reference in new issue
Block a user