Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ from PIL import Image
|
|
6 |
import cv2
|
7 |
|
8 |
model_names = [
|
|
|
9 |
"yolov8n-seg.pt",
|
10 |
"yolov8s-seg.pt",
|
11 |
"yolov8m-seg.pt",
|
@@ -13,7 +14,7 @@ model_names = [
|
|
13 |
"yolov8x-seg.pt",
|
14 |
]
|
15 |
|
16 |
-
current_model_name = "
|
17 |
model = YOLO(current_model_name)
|
18 |
|
19 |
def sort_instance_masks_by_centroid(instances_mask, reverse=False):
|
|
|
6 |
import cv2
|
7 |
|
8 |
model_names = [
|
9 |
+
"cell-seg.pt",
|
10 |
"yolov8n-seg.pt",
|
11 |
"yolov8s-seg.pt",
|
12 |
"yolov8m-seg.pt",
|
|
|
14 |
"yolov8x-seg.pt",
|
15 |
]
|
16 |
|
17 |
+
current_model_name = "cell-seg.pt"
|
18 |
model = YOLO(current_model_name)
|
19 |
|
20 |
def sort_instance_masks_by_centroid(instances_mask, reverse=False):
|