Spaces:
Sleeping
Sleeping
Commit ·
b2c8c5a
1
Parent(s): dac8745
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,13 +3,13 @@ import gradio as gr
|
|
| 3 |
from ultralytics import YOLO
|
| 4 |
import sahi
|
| 5 |
|
|
|
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
# Images
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
"tu1.png",
|
| 12 |
-
)
|
| 13 |
sahi.utils.file.download_from_url(
|
| 14 |
"https://huggingface.co/spaces/mennamostafa55555/ms/blob/main/download_14.png",
|
| 15 |
"tu2.png",
|
|
@@ -58,7 +58,7 @@ outputs = gr.Image(type="filepath", label="Output Image")
|
|
| 58 |
title = "Ultralytics YOLOv8 Segmentation Demo"
|
| 59 |
import os
|
| 60 |
examples = [
|
| 61 |
-
["tu1.
|
| 62 |
["tu2.png", 0.25, 0.45],
|
| 63 |
["tu3.jpg", 0.25, 0.45],
|
| 64 |
]
|
|
|
|
| 3 |
from ultralytics import YOLO
|
| 4 |
import sahi
|
| 5 |
|
| 6 |
+

|
| 7 |
+
|
| 8 |
|
| 9 |
|
| 10 |
# Images
|
| 11 |
+

|
| 12 |
+
|
|
|
|
|
|
|
| 13 |
sahi.utils.file.download_from_url(
|
| 14 |
"https://huggingface.co/spaces/mennamostafa55555/ms/blob/main/download_14.png",
|
| 15 |
"tu2.png",
|
|
|
|
| 58 |
title = "Ultralytics YOLOv8 Segmentation Demo"
|
| 59 |
import os
|
| 60 |
examples = [
|
| 61 |
+
["tu1.jpeg", 0.6, 0.45],
|
| 62 |
["tu2.png", 0.25, 0.45],
|
| 63 |
["tu3.jpg", 0.25, 0.45],
|
| 64 |
]
|