Created
January 5, 2021 10:18
-
-
Save AyishaR/9a22a2a9aae13aeb7c2d53cbd075d869 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Normalizing the pixel values for faster convergence | |
normalization_layer = layers.experimental.preprocessing.Rescaling(1./255) | |
train_ds = train_ds.map(lambda x, y: (normalization_layer(x), y)) | |
test_ds = test_ds.map(lambda x, y: (normalization_layer(x), y)) | |
val_ds = val_ds.map(lambda x, y: (normalization_layer(x), y)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment