mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-25 10:29:51 +08:00
Terrance/tensorf (#218)
* added tensorf, updated requirements for windows * cleaning up imports * tensorf changes * initial working version of tensorf * added callback for feature upsampling * modifying tests to match changes * reverting requirements changes * reverting unnecessary changes * reverting unnecessary changes * no more upsampling on step 0 * removed density field, fixed error msg * modified callbacks and upsampling, reinitializing optimzer in training loop * deleting tensorf_field file" * checkpointing progress on restructuring callbacks * updated callback logic for before and after train capabilities * fixing upsampling stepping * merging * adding tensorf to config, fixing some bugs with new callback * changed the way callbacks detected steps argument in callback func * fixing typing * adding pylint disable no self use to get_training_callbacks * fixing config * changing callback in vanilla nerf to allow for no density field * cleanup * removing config yaml Co-authored-by: Ethan Weber <eweb0124@gmail.com>
This commit is contained in:
1 parent
6ee6934581
commit
8670f19d2d
13 files changed
+394
-52
No files matched your search
@@ -30,7 +30,7 @@ from nerfactory.cameras.rays import RayBundle
|
||||
from nerfactory.configs import base as cfg
|
||||
from nerfactory.dataloaders.structs import SceneBounds
|
||||
from nerfactory.fields.density_fields.density_grid import DensityGrid
|
||||
from nerfactory.utils.callbacks import Callback
|
||||
from nerfactory.utils.callbacks import TrainingCallback, TrainingCallbackAttributes
|
||||
from nerfactory.utils.misc import get_masked_dict, is_not_none
|
||||
|
||||
|
||||
@@ -76,7 +76,9 @@ class Model(nn.Module):
|
||||
"""Returns the device that the model is on."""
|
||||
return self.device_indicator_param.device
|
||||
|
||||
def get_training_callbacks(self) -> List[Callback]: # pylint:disable=no-self-use
|
||||
def get_training_callbacks( # pylint:disable=no-self-use
|
||||
self, training_callback_attributes: TrainingCallbackAttributes # pylint: disable=unused-argument
|
||||
) -> List[TrainingCallback]:
|
||||
"""Returns a list of callbacks that run functions at the specified training iterations."""
|
||||
return []
|
||||
|
||||
@@ -92,7 +94,6 @@ class Model(nn.Module):
|
||||
update_every_num_iters=self.config.density_field_params["update_every_num_iters"],
|
||||
)
|
||||
|
||||
@abstractmethod
|
||||
def populate_fields(self):
|
||||
"""Set the fields."""
|
||||
|
||||
|
||||
Reference in new issue
Block a user