Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.5 # set threshold for this model
|
|
| 32 |
cfg.MODEL.WEIGHTS = model_zoo.get_checkpoint_url("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml")
|
| 33 |
predictor = DefaultPredictor(cfg)
|
| 34 |
|
| 35 |
-
|
| 36 |
im = cv2.imread("./input.jpg")
|
| 37 |
cv2_imshow(im)
|
| 38 |
|
|
|
|
| 32 |
cfg.MODEL.WEIGHTS = model_zoo.get_checkpoint_url("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml")
|
| 33 |
predictor = DefaultPredictor(cfg)
|
| 34 |
|
| 35 |
+
os.system(wget http://images.cocodataset.org/val2017/000000439715.jpg -q -O input.jpg)
|
| 36 |
im = cv2.imread("./input.jpg")
|
| 37 |
cv2_imshow(im)
|
| 38 |
|