nerfplayer with ngp and nerfacto (#1277)

* nerfplayer with ngp and nerfacto

* update comments

* update cpp extension build

* avoid Windows repeated CUDA compile

---------

Co-authored-by: machenmusik <machenmusik@users.noreply.github.com>
This commit is contained in:
LSongandmachenmusik authored and GitHub committed 2023-01-31 11:56:28 -08:00
1 parent 0e9e26dc7c
commit e73692e599
10 files changed
+1238 -15

No files matched your search

+2 -1
View File
@@ -27,9 +27,10 @@ BUILD_DIR = _get_build_directory(NAME, verbose=False)
_C = None
if cuda_toolkit_available():
if os.path.exists(os.path.join(BUILD_DIR, f"{NAME}.so")):
if os.listdir(BUILD_DIR) != []:
# If the build exists, we assume the extension has been built
# and we can load it.
print("nerfstudio field components: CUDA set up, loading (should be quick)")
_C = load(
name=NAME,
sources=glob.glob(os.path.join(PATH, "csrc/*.cu")),
+1 -1
View File
@@ -182,7 +182,7 @@ class TemporalGridEncoder(nn.Module):
input_dim: int = 3,
num_levels: int = 16,
level_dim: int = 2,
per_level_scale: int = 2,
per_level_scale: float = 2.0,
base_resolution: int = 16,
log2_hashmap_size: int = 19,
desired_resolution: Optional[int] = None,