Add median depth calculation (#877)

* Add median depth calculation

* lint

* Fix test
This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-11-01 15:05:16 -07:00
1 parent d9f6426e0d
commit ca69adaaec
3 files changed
+24 -6

No files matched your search

+1 -1
View File
@@ -125,7 +125,7 @@ class NGPModel(Model):
background_color = "random" if self.config.randomize_background else colors.WHITE
self.renderer_rgb = RGBRenderer(background_color=background_color)
self.renderer_accumulation = AccumulationRenderer()
self.renderer_depth = DepthRenderer()
self.renderer_depth = DepthRenderer(method="expected")
# losses
self.rgb_loss = MSELoss()