(self, mask_size=64, max_instance_n=20, bbox_area_threshold=0.0005)
| 384 | class SAMInstanceTransform(AbstractTransform): |
| 385 | |
| 386 | def __init__(self, mask_size=64, max_instance_n=20, bbox_area_threshold=0.0005): |
| 387 | self.mask_size = mask_size |
| 388 | self.max_instance_n = max_instance_n |
| 389 | self.bbox_area_threshold = bbox_area_threshold |
| 390 | |
| 391 | def get_bbox(self, instance): |
| 392 | """ Gets bounding box of the given instance |
nothing calls this directly
no outgoing calls
no test coverage detected