Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -115,10 +115,7 @@ def detect(img,model):
|
|
115 |
pred = non_max_suppression(pred, opt.conf_thres, opt.iou_thres, classes=opt.classes, agnostic=opt.agnostic_nms)
|
116 |
t2 = time_synchronized()
|
117 |
|
118 |
-
|
119 |
-
if classify:
|
120 |
-
pred = apply_classifier(pred, modelc, img, im0s)
|
121 |
-
|
122 |
# Process detections
|
123 |
for i, det in enumerate(pred): # detections per image
|
124 |
if webcam: # batch_size >= 1
|
|
|
115 |
pred = non_max_suppression(pred, opt.conf_thres, opt.iou_thres, classes=opt.classes, agnostic=opt.agnostic_nms)
|
116 |
t2 = time_synchronized()
|
117 |
|
118 |
+
|
|
|
|
|
|
|
119 |
# Process detections
|
120 |
for i, det in enumerate(pred): # detections per image
|
121 |
if webcam: # batch_size >= 1
|