Created
October 14, 2019 05:35
-
-
Save Tony607/b1b6222f3ddfc5b6b27c8ef4048f4b71 to your computer and use it in GitHub Desktop.
How to train Detectron2 with Custom COCO Datasets | DLology
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cfg.MODEL.WEIGHTS = os.path.join(cfg.OUTPUT_DIR, "model_final.pth") | |
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.5 # set the testing threshold for this model | |
cfg.DATASETS.TEST = ("fruits_nuts", ) | |
predictor = DefaultPredictor(cfg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment