Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ def inference(image_url, image, min_score):
|
|
91 |
# Model expect BGR!
|
92 |
im = image[:,:,::-1]
|
93 |
|
94 |
-
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST =
|
95 |
predictor = DefaultPredictor(cfg)
|
96 |
|
97 |
outputs = predictor(im)
|
|
|
91 |
# Model expect BGR!
|
92 |
im = image[:,:,::-1]
|
93 |
|
94 |
+
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.005
|
95 |
predictor = DefaultPredictor(cfg)
|
96 |
|
97 |
outputs = predictor(im)
|