Spaces:
Sleeping
Sleeping
Attempting Model Fix
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from ultralytics import YOLO
|
|
6 |
import os
|
7 |
|
8 |
MARKDOWN = """
|
9 |
-
<h1 style='text-align: left'>YOLO Application Toolkit
|
10 |
<p>Welcome to the YOLO Application Toolkit! This demo highlights the powerful detection capabilities of various YOLO models pre-trained on different datasets. π
|
11 |
|
12 |
Easily detect objects in images and videos on the go. Perfect for quick experimentation and practical use. ππ</p>
|
@@ -26,16 +26,14 @@ Powered by Roboflow [Inference](https://github.com/roboflow/inference),
|
|
26 |
[Supervision](https://github.com/roboflow/supervision) and [Ultralytics](https://github.com/ultralytics/ultralytics).π₯
|
27 |
"""
|
28 |
|
29 |
-
MODEL_DIR = os.path.join(os.path.dirname(__file__), "models")
|
30 |
-
|
31 |
# Load models dynamically
|
32 |
MODELS = {
|
33 |
-
"YOLO11m (COCO128)": YOLO(
|
34 |
-
"American Sign Language (ASL) YOLO11m": YOLO(
|
35 |
# "Microscopic Cell Detection YOLO11m": YOLO(os.path.join(MODEL_DIR, "yolo11m_microscope_cells.pt")),
|
36 |
-
"Website Screenshots YOLO11m": YOLO(
|
37 |
-
"Zoo Animals YOLO11m": YOLO(
|
38 |
-
"Pinned Circuit Boards YOLO11m": YOLO(
|
39 |
}
|
40 |
|
41 |
example_dir = "https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/"
|
|
|
6 |
import os
|
7 |
|
8 |
MARKDOWN = """
|
9 |
+
<h1 style='text-align: left'>YOLO Application Toolkit π</h1>
|
10 |
<p>Welcome to the YOLO Application Toolkit! This demo highlights the powerful detection capabilities of various YOLO models pre-trained on different datasets. π
|
11 |
|
12 |
Easily detect objects in images and videos on the go. Perfect for quick experimentation and practical use. ππ</p>
|
|
|
26 |
[Supervision](https://github.com/roboflow/supervision) and [Ultralytics](https://github.com/ultralytics/ultralytics).π₯
|
27 |
"""
|
28 |
|
|
|
|
|
29 |
# Load models dynamically
|
30 |
MODELS = {
|
31 |
+
"YOLO11m (COCO128)": YOLO("https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/models/yolo11m.pt"),
|
32 |
+
"American Sign Language (ASL) YOLO11m": YOLO("https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/models/yolo11m_sign_language.pt"),
|
33 |
# "Microscopic Cell Detection YOLO11m": YOLO(os.path.join(MODEL_DIR, "yolo11m_microscope_cells.pt")),
|
34 |
+
"Website Screenshots YOLO11m": YOLO("https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/models/yolo11m_website_screenshots.pt"),
|
35 |
+
"Zoo Animals YOLO11m": YOLO("https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/models/yolo11m_zoo_animals.pt"),
|
36 |
+
"Pinned Circuit Boards YOLO11m": YOLO("https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/models/yolo11m_circuit_boards.pt"),
|
37 |
}
|
38 |
|
39 |
example_dir = "https://huggingface.co/spaces/mbar0075/YOLO-Application-Toolkit/blob/main/"
|