Skip to content

fix disparity scaling for InStereo2k dataset #7453

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Mar 23, 2023

Fixes #7129.

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 23, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/7453

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

disparity_map = disparity_map[None, :, :] / 1024.0
# unsqueeze disparity to (C, H, W) and rescale
# https://github.com/YuhuaXu/StereoDataset/blob/b9ba15d0380a18a7b974c5dc37d9155acebaff4e/Readme.md?plain=1#L10
disparity_map = disparity_map[None, :, :] / 100.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm tempted to add this as a parameter instead because we won't be re-training those models to verify #7129 (comment)

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

Successfully merging this pull request may close these issues.

Wrong disparity scale in InStereo2k dataset
3 participants