-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Description
I used Google Colab tutorial, changed instance segmentation model to object detection like this:
cfg = get_cfg()
cfg.merge_from_file("./detectron2_repo/configs/COCO-Detection/retinanet_R_101_FPN_3x.yaml")
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.5 # set threshold for this model
# Find a model from detectron2's model zoo. You can either use the https://dl.fbaipublicfiles.... url, or use the following shorthand
cfg.MODEL.WEIGHTS = "detectron2://COCO-Detection/retinanet_R_101_FPN_3x/138363263/model_final_59f53c.pkl"
predictor = DefaultPredictor(cfg)
outputs = predictor(im)
As you can see cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.5
but threshold doesn't work:
Am I doing something wrong? Thanks.
Metadata
Metadata
Assignees
Labels
No labels