mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-12 10:55:57 +08:00
Fix total train time metric logging (#1284)
This commit is contained in:
1 parent
c8fdc1a7cb
commit
bc65639edf
1 file changed
+11
-7
@@ -227,14 +227,18 @@ class Trainer:
|
||||
self.save_checkpoint(step)
|
||||
|
||||
writer.write_out_storage()
|
||||
# save checkpoint at the end of training
|
||||
self.save_checkpoint(step)
|
||||
|
||||
CONSOLE.rule()
|
||||
CONSOLE.print("[bold green]:tada: :tada: :tada: Training Finished :tada: :tada: :tada:", justify="center")
|
||||
if not self.config.viewer.quit_on_train_completion:
|
||||
CONSOLE.print("Use ctrl+c to quit", justify="center")
|
||||
self._always_render(step)
|
||||
# save checkpoint at the end of training
|
||||
self.save_checkpoint(step)
|
||||
|
||||
# write out any remaining events (e.g., total train time)
|
||||
writer.write_out_storage()
|
||||
|
||||
CONSOLE.rule()
|
||||
CONSOLE.print("[bold green]:tada: :tada: :tada: Training Finished :tada: :tada: :tada:", justify="center")
|
||||
if not self.config.viewer.quit_on_train_completion:
|
||||
CONSOLE.print("Use ctrl+c to quit", justify="center")
|
||||
self._always_render(step)
|
||||
|
||||
@check_main_thread
|
||||
def _always_render(self, step):
|
||||
|
||||
Reference in new issue
Block a user