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

Fixes bug in PairPixelSampler when working with masked dataset #2368

Merged
merged 7 commits into from
Dec 1, 2023

Conversation

padeler
Copy link
Contributor

@padeler padeler commented Aug 24, 2023

PairPixelSampler does not compute the correct indices when there are masks in the dataset. This fixes the issue.

@tancik
Copy link
Contributor

tancik commented Aug 24, 2023

Can you run ns-dev-test

@elenacliu
Copy link
Contributor

sry to bother you, but can you explain what the bug is?

@padeler
Copy link
Contributor Author

padeler commented Aug 27, 2023

sry to bother you, but can you explain what the bug is?

Basically its an indentation error in the else block.

The sample_method is supposed to select ray pairs by first randomly selecting half the rays and then picking the other half from a radius near the first ones.

In the code when a mask is available it was selecting the indices for the first half but did not select their pairs.

Copy link
Contributor

@AdamRashid96 AdamRashid96 left a comment

Choose a reason for hiding this comment

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

LGTM

@brentyi brentyi enabled auto-merge (squash) November 30, 2023 23:59
@brentyi brentyi merged commit 0cb4100 into nerfstudio-project:main Dec 1, 2023
4 checks passed
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

Successfully merging this pull request may close these issues.

None yet

5 participants