eval progress bar with more metrics (#499)

updated eval
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-09-20 20:07:35 -07:00
1 parent 7fc970f1c7
commit 1d14263127
10 files changed
+102 -153

No files matched your search

+6
View File
@@ -177,6 +177,12 @@ class NGPModel(Model):
}
return outputs
def get_metrics_dict(self, outputs, batch):
image = batch["image"].to(self.device)
metrics_dict = {}
metrics_dict["psnr"] = self.psnr(outputs["rgb"], image)
return metrics_dict
def get_loss_dict(self, outputs, batch, metrics_dict=None):
image = batch["image"].to(self.device)
mask = outputs["alive_ray_mask"]