MVSNet_pytorch icon indicating copy to clipboard operation
MVSNet_pytorch copied to clipboard

preprocessing problems?

Open NIRVANALAN opened this issue 3 years ago • 4 comments

Hi! I am trying to do inference on my own dataset. I wonder why you do intrinsics[:2, :] /= 4 in Dataset Class?

NIRVANALAN avatar Sep 30 '20 10:09 NIRVANALAN

Hello, The predicted depth map is a quarter of the input image in each dimension. The camera intrinsic is corresponding to the input image.

XYZ-qiyh avatar Sep 30 '20 10:09 XYZ-qiyh

🤩 thanks for your elaboration!

On Wed, Sep 30, 2020 at 18:53 Todd-Qi [email protected] wrote:

Hello, The predicted depth map is a quarter of the input image in each dimension. The camera intrinsic is corresponding to the input image.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xy-guo/MVSNet_pytorch/issues/16#issuecomment-701315634, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSG6W2CGJSL3AU4ZOOAFQ3SIME2BANCNFSM4R65JHPQ .

-- Sincerely, Yushi

NIRVANALAN avatar Sep 30 '20 11:09 NIRVANALAN

Hello, The predicted depth map is a quarter of the input image in each dimension. The camera intrinsic is corresponding to the input image.

hi, when training, why you not do intrinsics[:2, :] /= 4 in Dataset Class, but do in eval.py?

UestcJay avatar Feb 10 '22 12:02 UestcJay

@UestcJay if you have a closer look at the camera .txt files of the training and evaluation set respectively, you'll find that for the training dataset, the camera intrinsics were already transformed according to intrinsics[:2, :] /=4 before being stored in the .txt files. For the validation set, this is not the case. Hence, this correction must only be done through the data loader during validation. As a take-away, you'll most likely have to add intrinsics[:2, :] /=4 if you're loading your own data

malteprinzler avatar May 18 '22 16:05 malteprinzler