ai-rectangle-to-mask                 
                 You need to be a Pro member to access the full content of this.
ai-rectangle-to-mask automatically generate a mask annotation from a rectangle annotation:

Usage
labelmetk ai-rectangle-to-mask [OPTIONS] FILE_OR_DIR...
--keep-original-bounding-box: Retain the original bounding box as the rectangle's coordinates, rather than creating a tight bounding box for the generated mask by AI. Default isfalse.--model: Segment-anything model to use. One of:efficientsam:10mefficientsam:latestsam2:largesam2:latest(default)sam2:smallsam2:tinysam:100msam:300msam:latest
Example: Generate mask for a JSON
labelmetk ai-rectangle-to-mask dogs_rectangle.json

Download an example JSON from:
dogs_rectangle.json (2.0MB)