rayh commited on
Commit
31e40d4
·
1 Parent(s): 7d5321a

Deploy latest YOLO model and app (version 20250422.7)

Browse files
Files changed (2) hide show
  1. README.md +6 -5
  2. runtime.txt +1 -0
README.md CHANGED
@@ -4,7 +4,6 @@ emoji: 🧬
4
  colorFrom: blue
5
  colorTo: indigo
6
  sdk: gradio
7
- sdk_version: "4.26.0"
8
  app_file: app.py
9
  pinned: false
10
  ---
@@ -33,6 +32,7 @@ python app.py
33
 
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
 
@@ -46,16 +46,17 @@ python app.py
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).
51
 
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
 
 
4
  colorFrom: blue
5
  colorTo: indigo
6
  sdk: gradio
 
7
  app_file: app.py
8
  pinned: false
9
  ---
 
32
 
33
  3. Deploy to [Hugging Face Spaces](https://huggingface.co/spaces):
34
  - Push this directory to a new Space as a Gradio app.
35
+ - If you update dependencies, restart the Space from the web UI to ensure a clean rebuild.
36
 
37
  ## Usage
38
 
 
46
  - `deploy.sh` automates model update and Hugging Face Space deployment, with Git LFS support.
47
 
48
  ## Integration
49
+ - The API will accept an image and return a segmentation mask (as an image) and the model version as a string.
50
+ - For annotation tool integration (e.g., CVAT), see the [NOTES.md](../NOTES.md) for design decisions and API tips.
51
 
52
  ## Notes
53
  - Add any additional dependencies to `requirements.txt` as needed.
54
+ - For Spaces, ensure your model weights are included or downloadable (Git LFS required for files >10MB).
55
+ - If you change requirements.txt, restart the Space from the Hugging Face UI ("Restart from Scratch") to ensure dependency updates are applied.
56
 
57
  ## Citation & Context
58
 
59
+ This tool is part of the Swinburne DECam synthetic data and orbital streak segmentation research project. For scientific use, please cite appropriately and refer to the project thesis and [NOTES.md](../NOTES.md) for detailed methodology and rationale.
60
 
61
  ---
62
 
runtime.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ python-3.11