MCPcopy Create free account
hub / github.com/apple/ml-4m / __init__

Method __init__

fourm/data/modality_transforms.py:386–389  ·  view source on GitHub ↗
(self, mask_size=64, max_instance_n=20, bbox_area_threshold=0.0005)

Source from the content-addressed store, hash-verified

384class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected