Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About dataset format #10

Open
songlin opened this issue Aug 6, 2024 · 0 comments
Open

About dataset format #10

songlin opened this issue Aug 6, 2024 · 0 comments

Comments

@songlin
Copy link

songlin commented Aug 6, 2024

Dear author,

I want to test our method on your datasets. However, we are confused about the dataset, particularly the depth map.

We downloaded the pickle files and tried to extract the depth map as follows:

uid = 11840 # e.g, 
h = LocalReadHandle(download_path, int(uid))
datapoint = h.read()
depth = datapoint.depth

left_image = datapoint.stereo.left_color 
right_image = datapoint.stereo.right_color

# convert depth to disparity
f = datapoint.camera_params['camera_intrinsic'][0][0] # 613.9624633789062
b = datapoint.camera_params['baseline'] # 0.06499999761581421
disp = f * b / depth

# pseudo code: warp right image according to the disparity
warpped_left = warp(right_image, disp) 
loss = F.l1_loss(warpped_left, left)

We found the loss is pretty high, meaning the disparity could be very wrong.
So, how could we get the depth, and camera intrinsics right?

Thank you in advance for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant