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:Hardware | Inference Time | Memory Usage |
---|---|---|
Jetson AGX Orin | ~200ms | ~4GB |
RTX 4090 | ~80ms | ~6GB |
Intel i7 CPU | ~2s | ~3GB |
Response Format
Example Applications
Object Extraction
Batch Processing
Hardware Detection
Next Steps
- Try CLIP model for image understanding
- Explore practical examples
- Learn about combining models for advanced workflows