Skip to content

Instantly share code, notes, and snippets.

@tanmay1070
Created Jul 13, 2021
Embed
What would you like to do?
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