Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,11 +21,11 @@ def detect(inp):
|
|
21 |
|
22 |
|
23 |
|
24 |
-
|
25 |
os.system("wget https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7.pt")
|
26 |
os.system("wget https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-e6e.pt")
|
27 |
os.system("wget https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-e6.pt")
|
28 |
-
|
29 |
|
30 |
def Custom_detect(img,model):
|
31 |
#if model =='Yolo_v7_Custom_model':
|
@@ -41,7 +41,7 @@ def Custom_detect(img,model):
|
|
41 |
parser.add_argument('--save-txt', action='store_true', help='save results to *.txt')
|
42 |
parser.add_argument('--save-conf', action='store_true', help='save confidences in --save-txt labels')
|
43 |
parser.add_argument('--nosave', action='store_true', help='do not save images/videos')
|
44 |
-
parser.add_argument('--classes',
|
45 |
parser.add_argument('--agnostic-nms', action='store_true', help='class-agnostic NMS')
|
46 |
parser.add_argument('--augment', action='store_true', help='augmented inference')
|
47 |
parser.add_argument('--update', action='store_true', help='update all models')
|
|
|
21 |
|
22 |
|
23 |
|
24 |
+
'''
|
25 |
os.system("wget https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7.pt")
|
26 |
os.system("wget https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-e6e.pt")
|
27 |
os.system("wget https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-e6.pt")
|
28 |
+
'''
|
29 |
|
30 |
def Custom_detect(img,model):
|
31 |
#if model =='Yolo_v7_Custom_model':
|
|
|
41 |
parser.add_argument('--save-txt', action='store_true', help='save results to *.txt')
|
42 |
parser.add_argument('--save-conf', action='store_true', help='save confidences in --save-txt labels')
|
43 |
parser.add_argument('--nosave', action='store_true', help='do not save images/videos')
|
44 |
+
parser.add_argument('--classes', nargs='+', type=int, help='filter by class: --class 0, or --class 0 2 3')
|
45 |
parser.add_argument('--agnostic-nms', action='store_true', help='class-agnostic NMS')
|
46 |
parser.add_argument('--augment', action='store_true', help='augmented inference')
|
47 |
parser.add_argument('--update', action='store_true', help='update all models')
|