-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Add Sintel Stereo dataset #6348
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
Conversation
NicolasHug
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @TeodorPoncu , Some minor comments but LGTM
|
|
||
|
|
||
| class SintelStereo(StereoMatchingDataset): | ||
| """ "Sintel `Stereo Dataset <http://sintel.is.tue.mpg.de/stereo>`_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| """ "Sintel `Stereo Dataset <http://sintel.is.tue.mpg.de/stereo>`_. | |
| """Sintel `Stereo Dataset <http://sintel.is.tue.mpg.de/stereo>`_. |
| Args: | ||
| root (string): Root directory where Sintel Stereo is located. | ||
| pass_name (string): The name of the pass to use, either "final" or "clean". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| pass_name (string): The name of the pass to use, either "final" or "clean". | |
| pass_name (string): The name of the pass to use, either "final", "clean", or "both". |
test/test_datasets.py
Outdated
| os.makedirs(split_dir, exist_ok=True) | ||
|
|
||
| # a single setting, since there are no splits | ||
| num_examples = {"final": 2, "clean": 2} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure the logic is picked up on
| num_examples = {"final": 2, "clean": 2} | |
| num_examples = {"final": 2, "clean": 3} |
| # reshape into (C, H, W) format | ||
| disparity_map = np.transpose(disparity_map, (2, 0, 1)) | ||
| # find the appropiate file paths | ||
| occlued_mask_path, out_of_frame_mask_path = self._get_oclussion_mask_paths(file_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, typo
| occlued_mask_path, out_of_frame_mask_path = self._get_oclussion_mask_paths(file_path) | |
| occluded_mask_path, out_of_frame_mask_path = self._get_occlussion_mask_paths(file_path) |
…h/vision into add-sintel-stereo-dataset
Summary: * added SceneFLow variant datasets * Changed split name to variant name * removed trailing commented code line * Added Sintel Stereo dataset * small refactor in tests * Fixed doc formatting. * candidate fix for FileNotFound on windows test * Adressing comments * Added Sintel Stereo dataset * small refactor in tests * Fixed doc formatting. * candidate fix for FileNotFound on windows test * Adressing comments * rebased on main * lint fix Reviewed By: datumbox Differential Revision: D38824235 fbshipit-source-id: 957fcfa5182182de47ba9f99b99a1b5712b2c754
This is a continuation of the PR split (#6311, #6269) which contains the Sintel Stereo training dataset.