Skip to content

Commit

Permalink
Update extractors.py
Browse files Browse the repository at this point in the history
changed `match` to `search`
  • Loading branch information
LukasMut authored Dec 4, 2024
1 parent 55341b8 commit abe5445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thingsvision/core/extraction/extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abe5445

Please sign in to comment.