From 2f9f9761d0845f903eb054cbac8bb6ab0e9cfbc0 Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Fri, 8 Mar 2024 12:01:45 +0000 Subject: [PATCH] cover uppercase links --- deepface/modules/preprocessing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepface/modules/preprocessing.py b/deepface/modules/preprocessing.py index 42756c1..7daf248 100644 --- a/deepface/modules/preprocessing.py +++ b/deepface/modules/preprocessing.py @@ -34,7 +34,7 @@ def load_image(img: Union[str, np.ndarray]) -> Tuple[np.ndarray, str]: return load_base64(img), "base64 encoded string" # The image is a url - if img.startswith("http://") or img.startswith("https://"): + if img.lower().startswith("http://") or img.lower().startswith("https://"): return load_image_from_web(url=img), img # The image is a path