4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 02:24:38 +08:00

Log start iter (#1119)

log start iter
This commit is contained in:
Matthew Tancik 2022-12-13 12:50:12 -08:00 committed by GitHub
parent 008cc8f144
commit 21e0ec6cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -382,12 +382,12 @@ class LocalWriter:
Args:
step: current train step
"""
valid_step = step > 0 and step % GLOBAL_BUFFER["steps_per_log"] == 0
valid_step = step % GLOBAL_BUFFER["steps_per_log"] == 0
if valid_step:
if not self.has_printed and self.config.max_log_size:
CONSOLE.log(
f"Printing max of {self.config.max_log_size} lines. "
"Set flag çççç[yellow]--logging.local-writer.max-log-size=0[/yellow] "
"Set flag [yellow]--logging.local-writer.max-log-size=0[/yellow] "
"to disable line wrapping."
)
latest_map, new_key = self._consolidate_events()