Dynamic resolution in viewer (#397)

Dynamic resolution
This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-09-11 18:31:54 -07:00
1 parent 455d7796d0
commit 7a7a5e608a
5 files changed
+172 -135

No files matched your search

+2 -1
View File
@@ -137,7 +137,8 @@ class Trainer:
callback.run_callback_at_location(step, location=TrainingCallbackLocation.AFTER_TRAIN_ITERATION)
with TimeWriter(writer, EventName.ITER_VIS_TIME, step=step) as vis_t:
self.visualizer_state.update_scene(step, self.pipeline.model)
num_rays_per_batch = self.config.pipeline.datamanager.train_num_rays_per_batch
self.visualizer_state.update_scene(step, self.pipeline.model, num_rays_per_batch)
if step != 0 and step % self.config.logging.steps_per_log == 0:
writer.put_dict(name="Loss/train-loss_metrics_dict", scalar_dict=loss_metric_dict, step=step)