Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -23,13 +23,13 @@ from utils import (
|
|
23 |
)
|
24 |
import torch
|
25 |
|
26 |
-
yolo_model = get_yolo_model(model_path='/
|
27 |
-
caption_model_processor = get_caption_model_processor(model_name="florence2", model_name_or_path="
|
28 |
|
29 |
from ultralytics import YOLO
|
30 |
|
31 |
-
if not os.path.exists("/
|
32 |
-
os.makedirs("/
|
33 |
|
34 |
try:
|
35 |
yolo_model = YOLO("NewParser/best.pt").to("cuda")
|
|
|
23 |
)
|
24 |
import torch
|
25 |
|
26 |
+
yolo_model = get_yolo_model(model_path='NewParser/best.pt')
|
27 |
+
#caption_model_processor = get_caption_model_processor(model_name="florence2", model_name_or_path="icon_caption_florence")
|
28 |
|
29 |
from ultralytics import YOLO
|
30 |
|
31 |
+
if not os.path.exists("NewParser/best.pt"):
|
32 |
+
os.makedirs("NewParser/best.pt")
|
33 |
|
34 |
try:
|
35 |
yolo_model = YOLO("NewParser/best.pt").to("cuda")
|