This commit is contained in:
Justin Kerr committed 2023-10-10 17:22:42 -07:00
1 parent 66ddab3aa9
commit 90957bcdfb
6 files changed
+487 -1302

No files matched your search

+8 -15
View File
@@ -267,21 +267,14 @@ class Trainer:
# Skip the first two steps to avoid skewed timings that break the viewer rendering speed estimate.
if step > 1:
if isinstance(self.pipeline.model, GaussianSplattingModel):
writer.put_scalar(
name=EventName.GAUSSIAN_NUM,
scalar=self.pipeline.model.get_gaussian_num,
step=step,
)
else:
writer.put_time(
name=EventName.TRAIN_RAYS_PER_SEC,
duration=self.world_size
* self.pipeline.datamanager.get_train_rays_per_batch()
/ max(0.001, train_t.duration),
step=step,
avg_over_steps=True,
)
writer.put_time(
name=EventName.TRAIN_RAYS_PER_SEC,
duration=self.world_size
* self.pipeline.datamanager.get_train_rays_per_batch()
/ max(0.001, train_t.duration),
step=step,
avg_over_steps=True,
)
self._update_viewer_state(step)