Fix depth-supervised nerf when using z-buffer depth. (#1340)

* fix z buffer depth

* remove script
This commit is contained in:
Jeffrey Hu authored and GitHub committed 2023-02-02 18:22:55 -08:00
1 parent 2e79c93cd2
commit a0976d1ff8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -291,7 +291,7 @@ def depth_loss(
Depth loss scalar.
"""
if not is_euclidean:
termination_depth = termination_depth / directions_norm
termination_depth = termination_depth * directions_norm
steps = (ray_samples.frustums.starts + ray_samples.frustums.ends) / 2
if depth_loss_type == DephtLossType.DS_NERF: