{"library":"rf-segment-anything","title":"RF Segment Anything","description":"RF Segment Anything (rf-segment-anything) provides a simple API to run Meta's Segment Anything Model (SAM) for image segmentation with just a few lines of code. Version 1.0 is currently available. Release cadence is unknown; the library appears to be in early active development.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install rf-segment-anything"],"cli":null},"imports":["from rf_segment_anything import Segmentation","from rf_segment_anything import Segmentation"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from rf_segment_anything import Segmentation\n\nsegmenter = Segmentation()\nsegmenter.load_model(\"vit_h\")\n\n# Use an image path or numpy array\nresult = segmenter.segment(\"path/to/image.jpg\")\nprint(result)","lang":"python","description":"Instantiate a Segmentation object, load a pre-trained model (e.g., vit_h), and call segment() on an image path or numpy array.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}