mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-23 16:15:36 +08:00
Added at_train_end logic to base pipeline (#1932)
* process additional images * added on_train_end to base pipeline * added on_train_end to base pipeline * remove on_train_end from Base Model and Base Datamanager * Add new callback type OnTrainEndCallback * return empty list as default * add on_train_end to trainingcallbacklocation enum * make step var into union of int and None * after train end callback * Delete unnecessary file * Delete unnecessary file * Delete unnecessary file --------- Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
This commit is contained in:
1 parent
61e48108df
commit
33d95f3e71
2 files changed
+7
No files matched your search
@@ -308,6 +308,10 @@ class Trainer:
|
||||
table.add_row("Checkpoint Directory", str(self.checkpoint_dir))
|
||||
CONSOLE.print(Panel(table, title="[bold][green]:tada: Training Finished :tada:[/bold]", expand=False))
|
||||
|
||||
# after train end callbacks
|
||||
for callback in self.callbacks:
|
||||
callback.run_callback_at_location(step=step, location=TrainingCallbackLocation.AFTER_TRAIN)
|
||||
|
||||
if not self.config.viewer.quit_on_train_completion:
|
||||
self._train_complete_viewer()
|
||||
|
||||
|
||||
Reference in new issue
Block a user