Skip to content

Conversation

@rijobro
Copy link
Contributor

@rijobro rijobro commented Sep 16, 2022

Description

If bounding box is always the same, it makes sense to give the user the option to set it in the constructor.

If bbox given in __call__ method use that. Else use bbox given in constructor. Else use None.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
@rijobro rijobro requested review from Nic-Ma, ericspod and wyli September 16, 2022 13:19
* The most probable class when the corresponding part of the image is occluded (``argmax(dim=-1)``).
Both images will be cropped if a bounding box used, but voxel sizes will always match the input.
"""
bbox = bbox if bbox is not None else self.bbox
Copy link
Contributor

@wyli wyli Sep 16, 2022

Choose a reason for hiding this comment

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

the method is currently using b_box

Suggested change
bbox = bbox if bbox is not None else self.bbox
bbox = b_box if b_box is not None else self.bbox

self.stride = stride
self.per_channel = per_channel
self.verbose = verbose
self.bbox = bbox
Copy link
Contributor

Choose a reason for hiding this comment

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

Please make the doc-string and code in consistent: "bbox" vs "b_box".
I would suggest b_box as the existing arg is b_box.

Thanks.

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.

4 participants