SAM / README.md
sajabdoli's picture
Update README.md
3a2715a verified
metadata
title: SAM Segmentation API
emoji: 🔍
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false

SAM FastAPI for Hugging Face Space

This is a FastAPI wrapper for Meta's Segment Anything Model (SAM), ready to deploy on Hugging Face Spaces.

Setup

  1. Upload the sam_vit_b.pth model checkpoint to the root of your Space manually.
  2. Hugging Face will automatically install dependencies and run the app.
  3. Use the /segment endpoint to perform segmentation.