Skip to content

Commit

Permalink
add fast model support for detector api
Browse files Browse the repository at this point in the history
Signed-off-by: Bedapudi Praneeth <[email protected]>
  • Loading branch information
bedapudi6788 committed Mar 19, 2021
1 parent 6ebf237 commit af4d8e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fastDeploy_recipes/detector/predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ def predictor(in_images=[], batch_size=32):

for in_img in in_images:
try:
preds.append(detector.detect(in_img))
if "_fast_mode_" in in_img:
preds.append(detector.detect(in_img, mode="fast"))
else:
preds.append(detector.detect(in_img))
except:
preds.append(None)

Expand Down

0 comments on commit af4d8e4

Please sign in to comment.