mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 21:39:06 +08:00
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:
4 files changed
+50
-32
No files matched your search
@@ -386,8 +386,8 @@ class PairPixelSampler(PixelSampler): # pylint: disable=too-few-public-methods
|
||||
def __init__(self, config: PairPixelSamplerConfig, **kwargs) -> None:
|
||||
self.config = config
|
||||
self.radius = self.config.radius
|
||||
self.rays_to_sample = self.config.num_rays_per_batch // 2
|
||||
super().__init__(self.config, **kwargs)
|
||||
self.rays_to_sample = self.config.num_rays_per_batch // 2
|
||||
|
||||
# overrides base method
|
||||
def sample_method( # pylint: disable=no-self-use
|
||||
|
||||
Reference in new issue
Block a user