banao-tech commited on
Commit
06a056f
·
verified ·
1 Parent(s): 1671052

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
main.py CHANGED
@@ -23,13 +23,13 @@ from utils import (
23
  )
24
  import torch
25
 
26
- yolo_model = get_yolo_model(model_path='/data/icon_detect/best.pt')
27
- caption_model_processor = get_caption_model_processor(model_name="florence2", model_name_or_path="/data/icon_caption_florence")
28
 
29
  from ultralytics import YOLO
30
 
31
- if not os.path.exists("/data/icon_detect"):
32
- os.makedirs("/data/icon_detect")
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")