Skip to content

Commit

Permalink
fix generic tensorflow preprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
candemircan authored Nov 26, 2024
1 parent d606b8f commit 1f95a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thingsvision/core/extraction/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def get_default_transformation(
apply_center_crop: bool = True,
) -> Any:
resize_dim = crop_dim
composes = [layers.experimental.preprocessing.Resizing(resize_dim, resize_dim)]
composes = [layers.experimental.preprocessing.Resizing(resize_dim, resize_dim), layers.experimental.preprocessing.Rescaling(1./255.)]
if apply_center_crop:
pass
# TODO: fix center crop problem with Keras
Expand Down

0 comments on commit 1f95a73

Please sign in to comment.