app.py
CHANGED
@@ -32,12 +32,20 @@ def process_image(image,conf,iou):
|
|
32 |
|
33 |
# Create the Gradio interface
|
34 |
title = "YOLOV8-TO Demo App"
|
35 |
-
description = "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
iface = gr.Interface(
|
38 |
fn=process_image,
|
39 |
inputs=[
|
40 |
-
gr.Image(type='pil',value ="https://huggingface.co/spaces/tomrb/YOLOv8-TO/resolve/main/test.png"),
|
41 |
gr.Slider(minimum=0, maximum=1, value=0.1, label="Confidence Threshold"),
|
42 |
gr.Slider(minimum=0, maximum=1, value=0.5, label="IOU Threshold")
|
43 |
],
|
|
|
32 |
|
33 |
# Create the Gradio interface
|
34 |
title = "YOLOV8-TO Demo App"
|
35 |
+
description = """
|
36 |
+
- **Upload an image** and see the processed results. You can replace the default image with whatever you want to upload.
|
37 |
+
- **Adjust the confidence and IOU thresholds** as needed.
|
38 |
+
- Runs the **YOLOv8-TO Nano model size**.
|
39 |
+
- **Runs on 2 CPU cores**, so please be patient!
|
40 |
+
- For more details, check out the [GitHub repository](https://github.com/COSIM-Lab/YOLOv8-TO).
|
41 |
+
- Learn more about the methodology in the related [research paper](https://arxiv.org/abs/2404.18763).
|
42 |
+
"""
|
43 |
+
|
44 |
|
45 |
iface = gr.Interface(
|
46 |
fn=process_image,
|
47 |
inputs=[
|
48 |
+
gr.Image(type='pil',value ="https://huggingface.co/spaces/tomrb/YOLOv8-TO/resolve/main/test.png", label="Input Image"),
|
49 |
gr.Slider(minimum=0, maximum=1, value=0.1, label="Confidence Threshold"),
|
50 |
gr.Slider(minimum=0, maximum=1, value=0.5, label="IOU Threshold")
|
51 |
],
|