From abe5445660d4728cd82a26cb9462074afce143e2 Mon Sep 17 00:00:00 2001 From: Lukas Muttenthaler Date: Wed, 4 Dec 2024 12:25:18 +0100 Subject: [PATCH] Update extractors.py changed `match` to `search` --- thingsvision/core/extraction/extractors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thingsvision/core/extraction/extractors.py b/thingsvision/core/extraction/extractors.py index 7928825..f91728f 100644 --- a/thingsvision/core/extraction/extractors.py +++ b/thingsvision/core/extraction/extractors.py @@ -238,7 +238,7 @@ def get_keras_preprocessing(self, model_name:str) -> Union[str, None]: ] # Try each pattern for pattern, preproc_val in patterns: - if re.match(pattern, model_name): + if re.search(pattern, model_name): return preproc_val # If no match is found, print a warning message