Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,6 @@ cfg.MODEL.MASK_FORMER.TEST.SEMANTIC_ON = True
|
|
40 |
cfg.MODEL.MASK_FORMER.TEST.INSTANCE_ON = True
|
41 |
cfg.MODEL.MASK_FORMER.TEST.PANOPTIC_ON = True
|
42 |
predictor = DefaultPredictor(cfg)
|
43 |
-
outputs = predictor(im)
|
44 |
|
45 |
def inference(img):
|
46 |
im = cv2.imread(img)
|
|
|
40 |
cfg.MODEL.MASK_FORMER.TEST.INSTANCE_ON = True
|
41 |
cfg.MODEL.MASK_FORMER.TEST.PANOPTIC_ON = True
|
42 |
predictor = DefaultPredictor(cfg)
|
|
|
43 |
|
44 |
def inference(img):
|
45 |
im = cv2.imread(img)
|