I need to implement a customized crop-like data augmentation where the cropping parameters need to be randomly drawn based on bounding boxes information with some constraints.
In short, this is how to do it when given a pair of image and bounding boxes with classes.
I checked the lambda function, but it seems that images and bounding boxes need to be done separately. Not sure how to pass the potential cropping parameters back to the image augmentation function.
Hi all,
I need to implement a customized crop-like data augmentation where the cropping parameters need to be randomly drawn based on bounding boxes information with some constraints.
In short, this is how to do it when given a pair of image and bounding boxes with classes.
I checked the lambda function, but it seems that images and bounding boxes need to be done separately. Not sure how to pass the potential cropping parameters back to the image augmentation function.
Can anyone help?