mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-24 00:26:08 +08:00
Volinga model and NVOL documentation (#1486)
* added volinga model to NeRFStudio * Removed unused dependencies * Modified dockerfile to match main * Corrected typo in core_code_checks.yml * Corrected typo in core_code_checks.yml * updated test with Volinga * Added conversion to NVOL documentation * [WIP] Refactor documentation and removing Volinga config * Volinga use existing NerfactoModelConfig * Added Unreal Engine documentation to extensions * removed unused field class import * Updated docs * Documentation ready * Update Dockerfile --------- Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
This commit is contained in:
1 parent
871eb0f7d3
commit
9053643932
10 files changed
+105
-6
No files matched your search
@@ -21,7 +21,6 @@ from typing import Optional
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
from torch.nn.parameter import Parameter
|
||||
from torchtyping import TensorType
|
||||
|
||||
from nerfstudio.cameras.rays import RaySamples
|
||||
@@ -62,11 +61,15 @@ class HashMLPDensityField(Field):
|
||||
features_per_level=2,
|
||||
) -> None:
|
||||
super().__init__()
|
||||
self.aabb = Parameter(aabb, requires_grad=False)
|
||||
self.register_buffer("aabb", aabb)
|
||||
self.spatial_distortion = spatial_distortion
|
||||
self.use_linear = use_linear
|
||||
growth_factor = np.exp((np.log(max_res) - np.log(base_res)) / (num_levels - 1))
|
||||
|
||||
self.register_buffer("max_res", torch.tensor(max_res))
|
||||
self.register_buffer("num_levels", torch.tensor(num_levels))
|
||||
self.register_buffer("log2_hashmap_size", torch.tensor(log2_hashmap_size))
|
||||
|
||||
config = {
|
||||
"encoding": {
|
||||
"otype": "HashGrid",
|
||||
|
||||
@@ -116,9 +116,13 @@ class TCNNNerfactoField(Field):
|
||||
) -> None:
|
||||
super().__init__()
|
||||
|
||||
self.aabb = Parameter(aabb, requires_grad=False)
|
||||
self.register_buffer("aabb", aabb)
|
||||
self.geo_feat_dim = geo_feat_dim
|
||||
|
||||
self.register_buffer("max_res", torch.tensor(max_res))
|
||||
self.register_buffer("num_levels", torch.tensor(num_levels))
|
||||
self.register_buffer("log2_hashmap_size", torch.tensor(log2_hashmap_size))
|
||||
|
||||
self.spatial_distortion = spatial_distortion
|
||||
self.num_images = num_images
|
||||
self.appearance_embedding_dim = appearance_embedding_dim
|
||||
|
||||
Reference in new issue
Block a user