Created
December 1, 2020 06:48
-
-
Save zakirangwala/8ab054afa1d8b1855d3bf25dd6c17c20 to your computer and use it in GitHub Desktop.
Revisions
-
zakirangwala created this gist
Dec 1, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ def detect_fn(image): detection_model = load_model() image, shapes = detection_model.preprocess(image) prediction_dict = detection_model.predict(image, shapes) detections = detection_model.postprocess(prediction_dict, shapes) return detections