Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,23 +14,10 @@ from utils.general import check_img_size, check_requirements, check_imshow, non_
|
|
14 |
from utils.plots import plot_one_box
|
15 |
from utils.torch_utils import select_device, load_classifier, time_synchronized, TracedModel
|
16 |
|
17 |
-
os.system('git clone https://github.com/WongKinYiu/yolov7')
|
18 |
|
|
|
19 |
|
20 |
-
'''def detect(inp):
|
21 |
-
os.system('python ./yolov7/detect.py --weights best.pt --conf 0.25 --img-size 640 --source f{inp} --project ./yolov7/runs/detect ')
|
22 |
-
otp=inp.split('/')[2]
|
23 |
-
return f"./yolov7/runs/detect/exp/*"'''
|
24 |
-
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
'''
|
30 |
-
os.system("wget https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7.pt")
|
31 |
-
os.system("wget https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-e6e.pt")
|
32 |
-
os.system("wget https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-e6.pt")
|
33 |
-
'''
|
34 |
|
35 |
def Custom_detect(img,model):
|
36 |
#if model =='Yolo_v7_Custom_model':
|
|
|
14 |
from utils.plots import plot_one_box
|
15 |
from utils.torch_utils import select_device, load_classifier, time_synchronized, TracedModel
|
16 |
|
|
|
17 |
|
18 |
+
os.system('git clone https://github.com/WongKinYiu/yolov7')
|
19 |
|
|
|
|
|
|
|
|
|
|
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
def Custom_detect(img,model):
|
23 |
#if model =='Yolo_v7_Custom_model':
|