mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-25 18:39:55 +08:00
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:
1 parent
0e9e26dc7c
commit
e73692e599
10 files changed
+1238
-15
No files matched your search
@@ -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")),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user