hlydecker commited on
Commit
2a31c27
·
1 Parent(s): c2f4d83

patch: fix thresh

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ from detectron2.checkpoint import DetectionCheckpointer
27
  cfg = get_cfg()
28
  cfg.merge_from_file("model_weights/tree_cfg.yml")
29
  cfg.MODEL.DEVICE='cpu'
30
- cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.25
31
  cfg.MODEL.WEIGHTS = "model_weights/tree_model.pth"
32
  cfg.MODEL.ROI_HEADS.NUM_CLASSES = 2
33
  predictor = DefaultPredictor(cfg)
 
27
  cfg = get_cfg()
28
  cfg.merge_from_file("model_weights/tree_cfg.yml")
29
  cfg.MODEL.DEVICE='cpu'
30
+ cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.75
31
  cfg.MODEL.WEIGHTS = "model_weights/tree_model.pth"
32
  cfg.MODEL.ROI_HEADS.NUM_CLASSES = 2
33
  predictor = DefaultPredictor(cfg)