mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 07:48:50 +08:00
Default to tcnn (#2159)
This commit is contained in:
1 parent
d6bb8bd8e5
commit
061d691d43
2 files changed
+2
-2
No files matched your search
@@ -264,7 +264,7 @@ class HashEncoding(Encoding):
|
|||||||
log2_hashmap_size: int = 19,
|
log2_hashmap_size: int = 19,
|
||||||
features_per_level: int = 2,
|
features_per_level: int = 2,
|
||||||
hash_init_scale: float = 0.001,
|
hash_init_scale: float = 0.001,
|
||||||
implementation: Literal["tcnn", "torch"] = "torch",
|
implementation: Literal["tcnn", "torch"] = "tcnn",
|
||||||
interpolation: Optional[Literal["Nearest", "Linear", "Smoothstep"]] = None,
|
interpolation: Optional[Literal["Nearest", "Linear", "Smoothstep"]] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
super().__init__(in_dim=3)
|
super().__init__(in_dim=3)
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class HashMLPDensityField(Field):
|
|||||||
base_res: int = 16,
|
base_res: int = 16,
|
||||||
log2_hashmap_size: int = 18,
|
log2_hashmap_size: int = 18,
|
||||||
features_per_level: int = 2,
|
features_per_level: int = 2,
|
||||||
implementation: Literal["tcnn", "torch"] = "torch",
|
implementation: Literal["tcnn", "torch"] = "tcnn",
|
||||||
) -> None:
|
) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.register_buffer("aabb", aabb)
|
self.register_buffer("aabb", aabb)
|
||||||
|
|||||||
Reference in new issue
Block a user