Spaces:
Build error
Build error
Commit
·
8154fce
1
Parent(s):
5eb3208
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,8 @@ def predict(
|
|
30 |
predictor = DefaultPredictor(cfg)
|
31 |
im = cv2.imread(img.name)
|
32 |
output = predictor(im)
|
33 |
-
output = cv2.cvtColor(output, cv2.COLOR_BGR2RGB)
|
34 |
img = add_bboxes(im, output['instances'].pred_boxes, scores=output['instances'].scores)
|
|
|
35 |
return img
|
36 |
|
37 |
title = "Indoor Pet Detection"
|
|
|
30 |
predictor = DefaultPredictor(cfg)
|
31 |
im = cv2.imread(img.name)
|
32 |
output = predictor(im)
|
|
|
33 |
img = add_bboxes(im, output['instances'].pred_boxes, scores=output['instances'].scores)
|
34 |
+
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
35 |
return img
|
36 |
|
37 |
title = "Indoor Pet Detection"
|