Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,18 +11,18 @@ from ultralyticsplus import YOLO, render_result
|
|
11 |
# import requests
|
12 |
# import cv2
|
13 |
|
14 |
-
image_path = [['test_images/2a998cfb0901db5f8210.jpg','linhcuem/
|
15 |
-
['test_images/2daab6ea3310e14eb801.jpg','linhcuem/
|
16 |
-
['test_images/7e77c596436c9132c87d.jpg','linhcuem/
|
17 |
-
['test_images/3355ec3269c8bb96e2d9.jpg','linhcuem/
|
18 |
-
['test_images/33148464019ed3c08a8f.jpg','linhcuem/
|
19 |
-
['test_images/b5db5e42d8b80ae653a9 (1).jpg','linhcuem/
|
20 |
-
['test_images/b272fec7783daa63f32c.jpg','linhcuem/
|
21 |
-
['test_images/bf1e22b0a44a76142f5b.jpg','linhcuem/
|
22 |
-
['test_images/ee106392e56837366e79.jpg','linhcuem/
|
23 |
|
24 |
# Load YOLO model
|
25 |
-
model = YOLO('linhcuem/
|
26 |
|
27 |
###################################################
|
28 |
def yolov8_img_inference(
|
|
|
11 |
# import requests
|
12 |
# import cv2
|
13 |
|
14 |
+
image_path = [['test_images/2a998cfb0901db5f8210.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45],['test_images/2ce19ce0191acb44920b.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45],
|
15 |
+
['test_images/2daab6ea3310e14eb801.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45], ['test_images/4a137deefb14294a7005 (1).jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45],
|
16 |
+
['test_images/7e77c596436c9132c87d.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45], ['test_images/170f914014bac6e49fab.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45],
|
17 |
+
['test_images/3355ec3269c8bb96e2d9.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45], ['test_images/546306a88052520c0b43.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45],
|
18 |
+
['test_images/33148464019ed3c08a8f.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45], ['test_images/a17a992a1cd0ce8e97c1.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45],
|
19 |
+
['test_images/b5db5e42d8b80ae653a9 (1).jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45],['test_images/b8ee1f5299a84bf612b9.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45],
|
20 |
+
['test_images/b272fec7783daa63f32c.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45],['test_images/bb202b3eaec47c9a25d5.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45],
|
21 |
+
['test_images/bf1e22b0a44a76142f5b.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45], ['test_images/ea5473c5f53f27617e2e.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45],
|
22 |
+
['test_images/ee106392e56837366e79.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45], ['test_images/f88d2214a4ee76b02fff.jpg','linhcuem/cham_diem_yolov8', 640, 0.25, 0.45]]
|
23 |
|
24 |
# Load YOLO model
|
25 |
+
model = YOLO('linhcuem/cham_diem_yolov8')
|
26 |
|
27 |
###################################################
|
28 |
def yolov8_img_inference(
|