Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -27,12 +27,12 @@ image_path = [['test_images/2a998cfb0901db5f8210.jpg','cham_diem_yolov8', 640, 0
|
|
27 |
['test_images/ee106392e56837366e79.jpg','cham_diem_yolov8', 640, 0.25, 0.45], ['test_images/f88d2214a4ee76b02fff.jpg','cham_diem_yolov8', 640, 0.25, 0.45]]
|
28 |
|
29 |
# Load YOLO model
|
30 |
-
model = YOLO('linhcuem/cham_diem_yolov8')
|
31 |
# model = YOLO('linhcuem/chamdiemgianhang_yolov8_300epochs')
|
32 |
# model = YOLO('linhcuem/chamdiemgianhang_yolov8_ver21')
|
33 |
# model = YOLO('linhcuem/cham_diem_yolov8_ver20')
|
34 |
# model_ids = ['linhcuem/checker_TB_yolov8_ver1', 'linhcuem/cham_diem_yolov8', 'linhcuem/chamdiemgianhang_yolov8_300epochs', 'linhcuem/cham_diem_yolov8_ver20', 'linhcuem/chamdiemgianhang_yolov8_ver21']
|
35 |
-
|
36 |
# current_model_id = model_ids[-1]
|
37 |
# model = YOLO(current_model_id)
|
38 |
# model = YOLO(model_path)
|
@@ -137,8 +137,8 @@ interface_image = gr.Interface(
|
|
137 |
fn=yolov8_img_inference,
|
138 |
inputs=[
|
139 |
gr.inputs.Image(type='pil'),
|
140 |
-
gr.inputs.Dropdown(["linhcuem/
|
141 |
-
default="linhcuem/
|
142 |
|
143 |
gr.inputs.Slider(minimum=320, maximum=1280, default=640, step=32, label="Image Size"),
|
144 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.25, step=0.05, label="Confidence Threshold"),
|
|
|
27 |
['test_images/ee106392e56837366e79.jpg','cham_diem_yolov8', 640, 0.25, 0.45], ['test_images/f88d2214a4ee76b02fff.jpg','cham_diem_yolov8', 640, 0.25, 0.45]]
|
28 |
|
29 |
# Load YOLO model
|
30 |
+
# model = YOLO('linhcuem/cham_diem_yolov8')
|
31 |
# model = YOLO('linhcuem/chamdiemgianhang_yolov8_300epochs')
|
32 |
# model = YOLO('linhcuem/chamdiemgianhang_yolov8_ver21')
|
33 |
# model = YOLO('linhcuem/cham_diem_yolov8_ver20')
|
34 |
# model_ids = ['linhcuem/checker_TB_yolov8_ver1', 'linhcuem/cham_diem_yolov8', 'linhcuem/chamdiemgianhang_yolov8_300epochs', 'linhcuem/cham_diem_yolov8_ver20', 'linhcuem/chamdiemgianhang_yolov8_ver21']
|
35 |
+
model = YOLO('linhcuem/checker_TB_yolov8_ver1')
|
36 |
# current_model_id = model_ids[-1]
|
37 |
# model = YOLO(current_model_id)
|
38 |
# model = YOLO(model_path)
|
|
|
137 |
fn=yolov8_img_inference,
|
138 |
inputs=[
|
139 |
gr.inputs.Image(type='pil'),
|
140 |
+
gr.inputs.Dropdown(["'linhcuem/checker_TB_yolov8_ver1'"],
|
141 |
+
default="'linhcuem/checker_TB_yolov8_ver1'", label="Model"),
|
142 |
|
143 |
gr.inputs.Slider(minimum=320, maximum=1280, default=640, step=32, label="Image Size"),
|
144 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.25, step=0.05, label="Confidence Threshold"),
|