mli0603 / stereo-transformer

Revisiting Stereo Depth Estimation From a Sequence-to-Sequence Perspective with Transformers. (ICCV 2021 Oral)
Apache License 2.0
660 stars 107 forks source link

How I get the occlusion part in the SCARED dataset? #53

Open fromWRF opened 2 years ago

fromWRF commented 2 years ago

As I can see in your data structure, there is an occlusion folder in your data, e.g. Scene Flow, MPI Sintel, KITTI 2015, MIDDLEBURY_2014, SCARED data. You give the answer about how to get the occlusion in the Scene Flow data, however, how to get the occlusion part in the SCARED data? Thanks for your answer!!!

Miaowei-HNU commented 2 years ago

Can you find it?

mli0603 commented 2 years ago

Hi @Miaowei-HNU

The occlusion is computed from the following steps

Miaowei-HNU commented 2 years ago

Thanks for your answer @mli0603

Laqqq commented 1 year ago

Hi! Thank you for providing this information, but in calculating the occlusion, how did you get the right disparity? As I follow the step but only get the left one. Thank you for clarification!

MichaelWangGo commented 9 months ago

Hi, thanks for providing the method, but the occ_mask_l is returned as True and False in each pixel: occ_mask_l.shape (1024, 1280, 3) occ_mask_l [[[ True False False] [ True False False] [ True False False] ... [ True False False] [ True False False] [ True False False]]

[[ True False False] [ True False False] [ True False False] ...

and the error output: cv2.error: OpenCV(4.9.0) 👎 error: (-5:Bad argument) in function 'imwrite'

Overload resolution failed:

img data type = bool is not supported Expected Ptrcv::UMat for argument 'img' How to save the occlusion images?