Skip to content

Commit

Permalink
Update extractors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasMut authored Dec 4, 2024
1 parent abe5445 commit 4aa351e
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 @@ -242,7 +242,7 @@ def get_keras_preprocessing(self, model_name:str) -> Union[str, None]:
return preproc_val

# If no match is found, print a warning message
warnings.warn(f"No preprocessing function found for model {model_name}, so falling back to default preprocessing.\nOften, models that come from Keras Applications have their own preprocessing functions, therefore this may create inaccurate results. If you need to manually specify a preprocessing function, please do so under the `transforms` argument when creating your DataSet")
warnings.warn(f"No preprocessing function found for model {model_name}, so falling back to default preprocessing.\nOften, models that come from Keras Applications have their own preprocessing functions.\nThus, this may create inaccurate results. If you need to manually specify a preprocessing function, please do so under the `transforms` argument when creating your Dataset")
return None


Expand Down

0 comments on commit 4aa351e

Please sign in to comment.