sam3-ls-backend / README.md
davanstrien's picture
davanstrien HF Staff
Upload folder using huggingface_hub
c3f4311 verified
metadata
title: SAM3 LS Backend
emoji: 🎯
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
pinned: false

SAM3 Label Studio ML Backend

Phase 1: hardcoded predictions for round-trip testing with Label Studio.

Endpoints:

  • GET /health β€” liveness
  • POST /setup β€” LS project setup (no-op stub)
  • POST /predict β€” returns one fixed bounding box per task
  • POST /webhook β€” annotation events (logged, no-op)

Configure in Label Studio: Settings β†’ Machine Learning β†’ Add Model β†’ URL = https://<username>-sam3-ls-backend.hf.space.

Expects an LS label config with:

  • <Image name="image" value="$image"/>
  • <RectangleLabels name="label" toName="image"> containing a <Label value="butterfly"/> (or override DEFAULT_LABEL env var).