Spaces:
Sleeping
Sleeping
Deploy latest YOLO model and app (version 20250422.7)
Browse files
README.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
## Quickstart
|
6 |
|
@@ -19,6 +34,17 @@ python app.py
|
|
19 |
3. Deploy to [Hugging Face Spaces](https://huggingface.co/spaces):
|
20 |
- Push this directory to a new Space as a Gradio app.
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
## Integration
|
23 |
- Replace the dummy `segment` function in `app.py` with your YOLO model inference code.
|
24 |
- The API will accept an image and return a segmentation mask (as an image).
|
@@ -26,3 +52,11 @@ python app.py
|
|
26 |
## Notes
|
27 |
- Add any additional dependencies to `requirements.txt` as needed.
|
28 |
- For Spaces, ensure your model weights are included or downloadable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: ClusterFlux
|
3 |
+
emoji: 🧬
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: indigo
|
6 |
+
sdk: gradio
|
7 |
+
sdk_version: "4.0.0"
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
---
|
11 |
|
12 |
+
# ClusterFlux: YOLO Segmentation Model Server
|
13 |
+
|
14 |
+
**ClusterFlux** is an interactive and API-ready Gradio Space for orbital streak image segmentation. It serves a YOLO-based segmentation model, with version tracking and reproducibility features for scientific workflows.
|
15 |
+
|
16 |
+
- **Model version** is shown in the UI and included in API responses.
|
17 |
+
- **Weights** are managed with Git LFS for large file support.
|
18 |
+
- **Designed for integration** with annotation tools (e.g., CVAT) and downstream astronomical data pipelines.
|
19 |
|
20 |
## Quickstart
|
21 |
|
|
|
34 |
3. Deploy to [Hugging Face Spaces](https://huggingface.co/spaces):
|
35 |
- Push this directory to a new Space as a Gradio app.
|
36 |
|
37 |
+
## Usage
|
38 |
+
|
39 |
+
- Upload an image to receive a segmentation mask generated by the latest YOLO model.
|
40 |
+
- The current model version is always visible for traceability.
|
41 |
+
- For programmatic access, use the Gradio API endpoint; the response includes both the mask and version.
|
42 |
+
|
43 |
+
## Deployment Workflow
|
44 |
+
|
45 |
+
- Model weights are copied into `weights/best.pt` and versioned via the `VERSION` file.
|
46 |
+
- `deploy.sh` automates model update and Hugging Face Space deployment, with Git LFS support.
|
47 |
+
|
48 |
## Integration
|
49 |
- Replace the dummy `segment` function in `app.py` with your YOLO model inference code.
|
50 |
- The API will accept an image and return a segmentation mask (as an image).
|
|
|
52 |
## Notes
|
53 |
- Add any additional dependencies to `requirements.txt` as needed.
|
54 |
- For Spaces, ensure your model weights are included or downloadable.
|
55 |
+
|
56 |
+
## Citation & Context
|
57 |
+
|
58 |
+
This tool is part of the Swinburne DECam synthetic data and galaxy segmentation research project. For scientific use, please cite appropriately and refer to the project thesis for detailed methodology and rationale.
|
59 |
+
|
60 |
+
---
|
61 |
+
|
62 |
+
For more details, see the [Hugging Face Spaces config reference](https://huggingface.co/docs/hub/spaces-config-reference).
|