added logger ability to log everything without erasing

This commit is contained in:
evonneng committed 2022-05-20 18:38:18 +00:00
1 parent 1817d1cf9d
commit bbfe815504
5 files changed
+72 -36

No files matched your search

+1 -1
View File
@@ -212,4 +212,4 @@ class NerfWGraph(NeRFGraph):
row2 = torch.cat([depth_fine, depth_fine_static, depth_coarse], dim=-2)
combined_image = torch.cat([row0, row1, row2], dim=-3)
writer.put_scalar(name="image_idx_{image_idx}-nerfw", image=combined_image, step=step, group="img")
writer.put_image(name="image_idx_{image_idx}-nerfw", image=combined_image, step=step, group="img")
+1 -1
View File
@@ -251,6 +251,6 @@ class NeRFGraph(Graph):
writer.put_scalar(name=f"val_{image_idx}", scalar=float(fine_ssim), step=step, group="ssim")
writer.put_scalar(name=f"val_{image_idx}", scalar=float(fine_lpips), step=step, group="lpips")
writer.put_scalar(name="Test PSNR", scalar=float(fine_psnr), step=step)
writer.put_scalar(name=writer.EventName.CURR_TEST_PSNR, scalar=float(fine_psnr), step=step)
return fine_psnr.item()