Open monster1616 opened 3 years ago
If you provide bboxes to Compose
in coco format, they must be returned in that format. If not, please provide a minimal example to reproduce the problem.
How to use 'min_visibility' parameter for mask ?
Unfortunately, the library does not have this functionality right now.
Thanks for reply, I also want to know that by using Albumentations API how much accuracy we can increase in faster RCNN and mask RCNN model(just give me rough idea like 5%,10% etc).
It is based on your pipeline, tasks and augmentations. There you can find benchmark results for our auto augmentation tool https://github.com/albumentations-team/autoalbument-benchmarks
Additional context
import albumentations as A transform = A.Compose( [A.RandomCrop(1024,1024)], bbox_params=A.BboxParams(format='coco', label_fields=['category_ids'], min_visibility=0.4) ) transformed = transform(image=image, bboxes=bboxes, mask=mask category_ids=category_ids)
Due to 'min_visibility' parameter bounding box results are fine(skipping the boxes with visibility < 0.4) but in mask image (transformed['mask']) it is not skipping masks with visibility < 0.4
I also need the output in coco format.
Thanks in advance