And this will cause the augmentations after the 4th bounding box to jumble up. Currently, I have added the images without bounding boxes to a separate queue to be augmented. But I believe this shouldn't be the intended behaviour as it can be quite difficult to figure out what is the underlying cause of the bounding boxes and images not being augmented correctly when the dataset contains images with no bounding boxes.
For example, if i augment a list of numpy images and a corresponding list of ia.BoundingBoxesOnImage:
If one of the images has no bounding box, bbs_on_img_array may look something like this after the annotation xmls was parsed:
And this will cause the augmentations after the 4th bounding box to jumble up. Currently, I have added the images without bounding boxes to a separate queue to be augmented. But I believe this shouldn't be the intended behaviour as it can be quite difficult to figure out what is the underlying cause of the bounding boxes and images not being augmented correctly when the dataset contains images with no bounding boxes.