Skip to content

Instantly share code, notes, and snippets.

@tanmay1070
Created July 13, 2021 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanmay1070/da9b9c1a9cb1238613120857f7deee2c to your computer and use it in GitHub Desktop.
Save tanmay1070/da9b9c1a9cb1238613120857f7deee2c to your computer and use it in GitHub Desktop.
train_data = tf.keras.preprocessing.image_dataset_from_directory(
train,
validation_split=0.2,
image_size=(224,224),
batch_size=30,
subset='training',
seed=500 )
test_data=tf.keras.preprocessing.image_dataset_from_directory(
test,
image_size=(224,224),
batch_size=30,
seed=500
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment