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.
pip install rf-segment-anythingNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Instantiate a Segmentation object, load a pre-trained model (e.g., vit_h), and call segment() on an image path or numpy array.
Pre-download weights manually or set environment variable TORCH_HOME to a custom directory.
Access result['masks'] for the list of masks.
Use the correct parameter name for your version; check documentation before upgrading.
No dependency data recorded yet.