CPU usage improvement and minor changes (#108)

* cpu fixes, masking logic but commented out, nerfw and semanticnerf in progress

* pylint
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-05-26 10:18:08 -04:00
1 parent 5e9d064db6
commit 3226a1c989
18 files changed
+118 -67

No files matched your search

+2 -2
View File
@@ -149,8 +149,8 @@ class SemanticNerfGraph(NeRFGraph):
loss_dict["aggregated_loss"] = self.get_aggregated_loss_from_loss_dict(loss_dict)
return loss_dict
def log_test_image_outputs(self, image_idx, step, image, outputs):
super().log_test_image_outputs(image_idx, step, image, outputs)
def log_test_image_outputs(self, image_idx, step, image, mask, outputs):
super().log_test_image_outputs(image_idx, step, image, mask, outputs)
semantic_labels = torch.argmax(torch.nn.functional.softmax(outputs["semantic_logits"], dim=-1), dim=-1) / len(
self.stuff_classes
)