Enable SparseNerf depth ranking loss to be used with GT/Sensor depth (#2312)

* add ranking loss to depth-nerfacto with GT depth

* formating

* pair pixel sampler bug fix from pr #2315

---------

Co-authored-by: Sasha Sax <asax@stanford.edu>
Co-authored-by: Ethan Weber <ethanweber@berkeley.edu>
Co-authored-by: AdamRashid96 <abrashid@berkeley.edu>
Co-authored-by: AdamRashid96 <71362382+AdamRashid96@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2023-08-26 02:56:52 -07:00
1 parent aaa6c3aa1d
commit 6e37b2b542
4 files changed
+50 -32

No files matched your search

+5 -1
View File
@@ -35,7 +35,6 @@ EPS = 1.0e-7
# Sigma scale factor from Urban Radiance Fields (Rematas et al., 2022)
URF_SIGMA_SCALE_FACTOR = 3.0
DEPTH_METRIC = 1
class DepthLossType(Enum):
@@ -43,6 +42,11 @@ class DepthLossType(Enum):
DS_NERF = 1
URF = 2
SPARSENERF_RANKING = 3
FORCE_PSEUDODEPTH_LOSS = False
PSEUDODEPTH_COMPATIBLE_LOSSES = (DepthLossType.SPARSENERF_RANKING,)
def outer(