Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ image_path = [['test_images/2a998cfb0901db5f8210.jpg','linhcuem/chamdiem_yolov8_
|
|
19 |
['test_images/ee106392e56837366e79.jpg','linhcuem/chamdiem_yolov8_ver10', 640, 0.25, 0.45], ['test_images/f88d2214a4ee76b02fff.jpg','linhcuem/chamdiem_yolov8_ver10', 640, 0.25, 0.45]]
|
20 |
|
21 |
# Load YOLO model
|
22 |
-
|
23 |
|
24 |
###################################################
|
25 |
def yolov8_img_inference(
|
@@ -32,7 +32,8 @@ def yolov8_img_inference(
|
|
32 |
model = YOLO(model_path)
|
33 |
model.conf = conf_threshold
|
34 |
model.iou = iou_threshold
|
35 |
-
results = model.predict(image, imgsz=image_size, return_outputs=True)
|
|
|
36 |
# object_prediction_list = []
|
37 |
# for _, image_results in enumerate(results):
|
38 |
# if len(image_results)!=0:
|
|
|
19 |
['test_images/ee106392e56837366e79.jpg','linhcuem/chamdiem_yolov8_ver10', 640, 0.25, 0.45], ['test_images/f88d2214a4ee76b02fff.jpg','linhcuem/chamdiem_yolov8_ver10', 640, 0.25, 0.45]]
|
20 |
|
21 |
# Load YOLO model
|
22 |
+
model = YOLO('linhcuem/chamdiem_yolov8_ver10')
|
23 |
|
24 |
###################################################
|
25 |
def yolov8_img_inference(
|
|
|
32 |
model = YOLO(model_path)
|
33 |
model.conf = conf_threshold
|
34 |
model.iou = iou_threshold
|
35 |
+
#results = model.predict(image, imgsz=image_size, return_outputs=True)
|
36 |
+
results = model.predict(image)
|
37 |
# object_prediction_list = []
|
38 |
# for _, image_results in enumerate(results):
|
39 |
# if len(image_results)!=0:
|