Skip to main content

SAM2 Model

SAM2 (Segment Anything Model 2) is Meta’s advanced image segmentation model. With InferX, you can run SAM2 on any device using the same API - from Jetson edge devices to powerful GPU servers.

Features

  • Universal Segmentation: Segment any object in any image
  • Point and Click: Interactive segmentation with point prompts
  • Box Prompts: Segment objects using bounding box inputs
  • Cross-Platform: Same code works on Jetson, GPU, or CPU
  • Real-time Performance: Optimized for fast inference

Installation

SAM2 is included with InferX. You’ll need to download the model weights:

Basic Usage

Advanced Usage

Box Prompts

Multiple Objects

Interactive Segmentation

Performance

InferX optimizes SAM2 for your hardware:

Response Format

Example Applications

Object Extraction

Batch Processing

Hardware Detection

Next Steps