albumentations icon indicating copy to clipboard operation
albumentations copied to clipboard

Fixed the error when bbox dimensions gets less than 0 or greater than 1

Open POONAM2015 opened this issue 2 years ago • 2 comments

image

POONAM2015 avatar Sep 06 '22 09:09 POONAM2015

We can not change bboxes silently, because these changes might be incorrect in some cases. Better to add flag clamp_bbox=False into this function and into BboxParams and BboxProcessor

Dipet avatar Sep 06 '22 09:09 Dipet

I have added the parameter clamp_bbox=False to BBoxParams which will control whether bboxes will be forcefully clamped to remain between 0 and 1. Thanks.

POONAM2015 avatar Sep 06 '22 11:09 POONAM2015