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

Update pixel_samplers.py #2327

Conversation

alexsax
Copy link
Contributor

@alexsax alexsax commented Aug 10, 2023

Now uses the specified batch_size param in sample_method(), fixes the pointcloud exporting error in #2313

Now uses the specified batch_size param in sample_method()
@@ -392,7 +392,7 @@ def __init__(self, config: PairPixelSamplerConfig, **kwargs) -> None:
# overrides base method
def sample_method( # pylint: disable=no-self-use
self,
batch_size: int,
batch_size: Optional[int],
Copy link
Contributor

Choose a reason for hiding this comment

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

tanku for this fix!

is this param really optional tho? in the superclass it is not optional. it's a little confusing because the pixel sampler seems to have a side API for configuring batch size even tho notionally the batch size config can be passed in via a different flag

Copy link
Contributor

@tancik tancik left a comment

Choose a reason for hiding this comment

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

LGTM

@tancik tancik enabled auto-merge (squash) August 17, 2023 17:49
@tancik tancik merged commit 9cd957f into nerfstudio-project:main Aug 17, 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

3 participants