sparse-to-dense.pytorch icon indicating copy to clipboard operation
sparse-to-dense.pytorch copied to clipboard

Scaling factor cancels out for depth values

Open jocodeone opened this issue 2 years ago • 0 comments

I just found your code as I was searching for NYU Depth Data loaders. First of all, thanks a lot for making this public.

I think your scaling is not applied correctly. As you divide by s, you reverse this by applying the transformation for the image and the depth values. Therefore you have the same depth values, but a scaled image. To correct this, you have to divide the depth values by the squared scaling when you still apply the same transformation.

Not sure whether this has an impact at all, but the camera world geometry is not correct as a result and maybe that has also an impact on the training itself.

https://github.com/fangchangma/sparse-to-dense.pytorch/blob/10efc6d60bddedd6f28f0532c108bb1d7ccdfc49/dataloaders/nyu_dataloader.py#L14

jocodeone avatar Nov 07 '22 14:11 jocodeone