Skip to content

Instantly share code, notes, and snippets.

@trongan93
Created April 9, 2021 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trongan93/3fe522831f63886a9037454883e35dbf to your computer and use it in GitHub Desktop.
Save trongan93/3fe522831f63886a9037454883e35dbf to your computer and use it in GitHub Desktop.
cfg.MODEL.WEIGHTS = os.path.join(cfg.OUTPUT_DIR, "model_final.pth") # path to the model we just trained
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.7 # set a custom testing threshold
predictor = DefaultPredictor(cfg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment