Created
September 21, 2021 19:33
-
-
Save tanmayymishra/34d1b5ce29fa1b1529069488c7d7f510 to your computer and use it in GitHub Desktop.
tyre
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
train_dir= "./tire-dataset/" | |
train_datagen= tf.keras.preprocessing.image.ImageDataGenerator(rescale= 1./255, validation_split=0.2) | |
train_generator= train_datagen.flow_from_directory(train_dir, target_size= (100,100), color_mode= 'grayscale', batch_size= 20, class_mode= 'categorical', subset= 'training') | |
val_generator= train_datagen.flow_from_directory(train_dir, target_size= (100,100), color_mode= 'grayscale', batch_size= 20, class_mode= 'categorical', subset= 'validation') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment