fixstars / libSGM

Stereo Semi Global Matching by cuda
Apache License 2.0
623 stars 189 forks source link

Incorrent result on GPU mode #77

Closed songlin closed 8 months ago

songlin commented 8 months ago

Dear authors,

Thank you for sharing the great work.

I just compiled and run with the latest code successfully. However, the result in movie mode which runs on GPU is incorrect while the result in CPU is correct. Please help if I am doing something wrong. The input and output are provided in the attachments.

left_0000 right_0000

Run with ~image~

./build/sample/stereosgm_image left_0000.png right_0000.png --disp_size=128

Run with ~movie~:

./build/sample/stereosgm_movie left_%04d.png right_%04d.png 

image-result movie result

I tested on A100 and 3090 and got the same results. I tested with Cuda version 11.1 and ubuntu 20.04.

Thank you.

songlin commented 8 months ago

It works after I convert color images to gray images.