mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-19 22:25:44 +08:00
Fix depth-supervised nerf when using z-buffer depth. (#1340)
* fix z buffer depth * remove script
This commit is contained in:
1 parent
2e79c93cd2
commit
a0976d1ff8
2 files changed
+2
-2
No files matched your search
@@ -108,7 +108,7 @@ class DepthNerfactoModel(NerfactoModel):
|
||||
metrics, images = super().get_image_metrics_and_images(outputs, batch)
|
||||
ground_truth_depth = batch["depth_image"]
|
||||
if not self.config.is_euclidean_depth:
|
||||
ground_truth_depth = ground_truth_depth / outputs["directions_norm"]
|
||||
ground_truth_depth = ground_truth_depth * outputs["directions_norm"]
|
||||
|
||||
ground_truth_depth_colormap = colormaps.apply_depth_colormap(ground_truth_depth)
|
||||
predicted_depth_colormap = colormaps.apply_depth_colormap(
|
||||
|
||||
Reference in new issue
Block a user