Spaces:
Running on Zero
Running on Zero
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Ice Cream Freezer Counter — RT-DETR + Hugging Face
|
| 2 |
|
| 3 |
A complete object-detection project for counting individual ice creams in freezer photos and identifying each product type.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Ice Cream Counter
|
| 3 |
+
emoji: 🍦
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: red
|
| 6 |
+
sdk: docker
|
| 7 |
+
pinned: false
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Ice Cream Counter
|
| 11 |
+
|
| 12 |
+
RT-DETR-based ice cream detection and counting API.
|
| 13 |
+
|
| 14 |
+
## Features
|
| 15 |
+
|
| 16 |
+
- Upload training freezer photos once
|
| 17 |
+
- Save the dataset
|
| 18 |
+
- Annotate individual ice creams
|
| 19 |
+
- Train an RT-DETR model
|
| 20 |
+
- Save the trained model
|
| 21 |
+
- Upload new images one by one
|
| 22 |
+
- Detect and count every ice cream by type
|
| 23 |
+
- No YOLO
|
| 24 |
+
|
| 25 |
+
## Main workflow
|
| 26 |
+
|
| 27 |
+
1. Define your ice cream classes.
|
| 28 |
+
2. Upload training images.
|
| 29 |
+
3. Annotate each ice cream with a bounding box and product type.
|
| 30 |
+
4. Train the RT-DETR model.
|
| 31 |
+
5. The trained model is saved.
|
| 32 |
+
6. Upload a new freezer image.
|
| 33 |
+
7. Get the total count and count for every product type.
|
| 34 |
+
|
| 35 |
+
## API
|
| 36 |
+
|
| 37 |
+
- `GET /health`
|
| 38 |
+
- `POST /dataset/images`
|
| 39 |
+
- `GET /dataset`
|
| 40 |
+
- `POST /dataset/annotations`
|
| 41 |
+
- `POST /train`
|
| 42 |
+
- `GET /training/status`
|
| 43 |
+
- `GET /model`
|
| 44 |
+
- `POST /count`
|
| 45 |
+
|
| 46 |
+
## Local development
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
pip install -r requirements.txt
|
| 50 |
+
uvicorn app.main:app --host 0.0.0.0 --port 7860
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
|
| 54 |
# Ice Cream Freezer Counter — RT-DETR + Hugging Face
|
| 55 |
|
| 56 |
A complete object-detection project for counting individual ice creams in freezer photos and identifying each product type.
|