diff --git a/deploy/python/infer.py b/deploy/python/infer.py index 01f044e0124da9e4dce24f0df320551cc2c11e52..e1d885d2c1f6aecdf5b546dc8c30b44ee22f55a4 100644 --- a/deploy/python/infer.py +++ b/deploy/python/infer.py @@ -295,7 +295,7 @@ class Predictor: def run(deploy_conf, imgs_dir, support_extensions=".jpg|.jpeg"): # 1. scan and get all images with valid extensions in directory imgs_dir - imgs = get_images_from_dir(imgs_dir) + imgs = get_images_from_dir(imgs_dir, support_extensions) if len(imgs) == 0: print("No Image (with extensions : %s) found in [%s]" % (support_extensions, imgs_dir))