-
Notifications
You must be signed in to change notification settings - Fork 621
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 crash in RandomBBoxCrop when no labels are provided #2265
Conversation
- ProspectiveCrop assumed that labels are always provided and there the number is equal to the number of bboxes - extends logic to support has_labels variable Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
!build |
CI MESSAGE: [1614873]: BUILD STARTED |
@@ -333,3 +333,21 @@ def test_random_bbox_crop_overlap(): | |||
for use_labels in [True, False]: | |||
yield check_random_bbox_crop_overlap, \ | |||
batch_size, ndim, crop_shape, input_shape, use_labels | |||
|
|||
def test_random_bbox_crop_no_lables(): |
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.
def test_random_bbox_crop_no_lables(): | |
def test_random_bbox_crop_no_labels(): |
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.
Done
return out | ||
boxes = fn.external_source(source = get_boxes) | ||
processed = fn.random_bbox_crop(boxes, | ||
aspect_ratio=[0.5, 2.0], |
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.
indentation
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.
Done
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
!build |
CI MESSAGE: [1614928]: BUILD STARTED |
CI MESSAGE: [1614873]: BUILD FAILED |
CI MESSAGE: [1614873]: BUILD PASSED |
CI MESSAGE: [1614928]: BUILD PASSED |
Signed-off-by: Janusz Lisiecki jlisiecki@nvidia.com
Why we need this PR?
Pick one, remove the rest
What happened in this PR?
Fill relevant points, put NA otherwise. Replace anything inside []
extends logic to support has_labels variable in ProspectiveCrop
RandomBBoxCrop
NA
CI
test case has been added
Relates to #2262
JIRA TASK: [NA]