Created
December 6, 2021 06:19
-
-
Save maheshs11/c5d971670c1bb3b4bace44fccb5ac4f0 to your computer and use it in GitHub Desktop.
new share
This file contains 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
def godspeed(): | |
runner = GeneralizedRCNNRunner() | |
cfg = runner.get_default_cfg() | |
cfg.merge_from_file(r"/home/pi/Desktop/train/mask_model2_config/config2 (2).yml") | |
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.9 # set threshold for this model | |
cfg.MODEL.DEVICE = "cpu" | |
cfg.QUANTIZATION.BACKEND = 'qnnpack' | |
torch.backends.quantized.engine = 'qnnpack' | |
model = create_predictor('/home/pi/Desktop/train/predictor_path_mask2_custom') | |
#mp.set_start_method("spawn",force = True) | |
predictor = DemoPredictor(model) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment