mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-25 02:19:47 +08:00
1 parent
7fc970f1c7
commit
1d14263127
10 files changed
+102
-153
No files matched your search
@@ -207,9 +207,7 @@ class Trainer:
|
||||
if step != 0 and self.config.trainer.steps_per_save and step % self.config.trainer.steps_per_save == 0:
|
||||
self._save_checkpoint(step)
|
||||
|
||||
self._write_out_storage(step)
|
||||
|
||||
self._write_out_storage(num_iterations)
|
||||
writer.write_out_storage()
|
||||
|
||||
def _check_viewer_warnings(self) -> None:
|
||||
"""Helper to print out any warnings regarding the way the viewer/loggers are enabled"""
|
||||
@@ -272,20 +270,6 @@ class Trainer:
|
||||
avg_over_steps=True,
|
||||
)
|
||||
|
||||
def _write_out_storage(self, step: int) -> None:
|
||||
"""Perform writes only during appropriate time steps
|
||||
|
||||
Args:
|
||||
step: Current training step.
|
||||
"""
|
||||
if (
|
||||
step % self.config.logging.steps_per_log == 0
|
||||
or step % self.config.trainer.steps_per_eval_batch == 0
|
||||
or step % self.config.trainer.steps_per_eval_image == 0
|
||||
or step % self.config.trainer.steps_per_eval_all_images == 0
|
||||
):
|
||||
writer.write_out_storage()
|
||||
|
||||
def _load_checkpoint(self) -> None:
|
||||
"""Helper function to load pipeline and optimizer from prespecified checkpoint"""
|
||||
load_dir = self.config.trainer.load_dir
|
||||
|
||||
Reference in new issue
Block a user