Spaces:
Paused
Paused
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,10 +1,42 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
-
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: SAM3 Training Data Accelerator
|
| 3 |
+
emoji: 🏷️
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: docker
|
| 7 |
+
app_port: 8501
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# SAM3 Training Data Accelerator
|
| 11 |
+
|
| 12 |
+
Accelerate training data creation for object detection models using Facebook SAM3 promptable segmentation.
|
| 13 |
+
|
| 14 |
+
## Workflow
|
| 15 |
+
|
| 16 |
+
1. **Upload** an image
|
| 17 |
+
2. **Detect** objects via text prompt (e.g. "individual servers mounted in a rack")
|
| 18 |
+
3. **Label** each detection — accept or reject, assign a class label
|
| 19 |
+
4. **Refine** using accepted boxes as prompts to find additional objects
|
| 20 |
+
5. **Export** a JSON manifest for downstream fine-tuning
|
| 21 |
+
|
| 22 |
+
## Deployment
|
| 23 |
+
|
| 24 |
+
### HuggingFace Spaces
|
| 25 |
+
|
| 26 |
+
Push this directory to an HF Space with **Docker** SDK and GPU runtime. Set `HF_TOKEN` as a Space secret (required for gated `facebook/sam3` model access).
|
| 27 |
+
|
| 28 |
+
### Local / Docker
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
docker build -t demomule .
|
| 32 |
+
docker run -p 8501:8501 -e HF_TOKEN=hf_... demomule
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
Then open http://localhost:8501.
|
| 36 |
+
|
| 37 |
+
### Local (no Docker)
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
pip install -r requirements.txt
|
| 41 |
+
HF_TOKEN=hf_... streamlit run app.py
|
| 42 |
+
```
|