chmcbs
commited on
Commit
·
8ee30a6
1
Parent(s):
931f00d
Refine Gradio UI and simplify README.md
Browse files
README.md
CHANGED
|
@@ -8,12 +8,4 @@ sdk_version: 6.2.0
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: cc-by-4.0
|
| 11 |
-
---
|
| 12 |
-
|
| 13 |
-
# 🌾 HeadCount: Automated Wheat Head Counter
|
| 14 |
-
|
| 15 |
-
Interactive demo for counting wheat heads in field images using semantic segmentation, using the model from [chmcbs/HeadCount](https://huggingface.co/chmcbs/HeadCount).
|
| 16 |
-
|
| 17 |
-
- Designed for yield estimation, flowering time detection, and field maturity assessment
|
| 18 |
-
- Best results with overhead imagery under diffuse lighting
|
| 19 |
-
- May struggle with harsh lighting or heavily overlapping heads
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: cc-by-4.0
|
| 11 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
|
@@ -52,8 +52,11 @@ if os.path.exists("examples"):
|
|
| 52 |
|
| 53 |
# Create Gradio interface
|
| 54 |
with gr.Blocks(title="HeadCount") as demo:
|
| 55 |
-
gr.Markdown("# 🌾 HeadCount
|
| 56 |
-
gr.Markdown("
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
with gr.Row():
|
| 59 |
image_input = gr.Image(type="pil", label="Upload Image")
|
|
@@ -65,7 +68,6 @@ with gr.Blocks(title="HeadCount") as demo:
|
|
| 65 |
with gr.Row():
|
| 66 |
with gr.Column():
|
| 67 |
if example_images:
|
| 68 |
-
gr.Markdown("### Example Images")
|
| 69 |
gr.Examples(examples=example_images, inputs=image_input)
|
| 70 |
|
| 71 |
with gr.Column():
|
|
@@ -77,5 +79,7 @@ with gr.Blocks(title="HeadCount") as demo:
|
|
| 77 |
outputs=[head_count_output, overlay_output]
|
| 78 |
)
|
| 79 |
|
|
|
|
|
|
|
| 80 |
if __name__ == "__main__":
|
| 81 |
-
demo.launch(share=False, server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 52 |
|
| 53 |
# Create Gradio interface
|
| 54 |
with gr.Blocks(title="HeadCount") as demo:
|
| 55 |
+
gr.Markdown("# 🌾 HeadCount")
|
| 56 |
+
gr.Markdown("### A semantic segmentation model for counting wheat heads in field images.")
|
| 57 |
+
gr.Markdown("- Designed for yield estimation, flowering time detection, and field maturity assessment")
|
| 58 |
+
gr.Markdown("- Best results with overhead imagery under diffuse lighting")
|
| 59 |
+
gr.Markdown("- Performance may vary with harsh lighting or heavily overlapping heads")
|
| 60 |
|
| 61 |
with gr.Row():
|
| 62 |
image_input = gr.Image(type="pil", label="Upload Image")
|
|
|
|
| 68 |
with gr.Row():
|
| 69 |
with gr.Column():
|
| 70 |
if example_images:
|
|
|
|
| 71 |
gr.Examples(examples=example_images, inputs=image_input)
|
| 72 |
|
| 73 |
with gr.Column():
|
|
|
|
| 79 |
outputs=[head_count_output, overlay_output]
|
| 80 |
)
|
| 81 |
|
| 82 |
+
gr.Markdown("<div style='text-align: center'>Powered by <strong><a href='https://huggingface.co/chmcbs/HeadCount' target='_blank'>chmcbs/HeadCount</a></strong></div>")
|
| 83 |
+
|
| 84 |
if __name__ == "__main__":
|
| 85 |
+
demo.launch(share=False, server_name="0.0.0.0", server_port=7860)
|