-
-
Save um4ng-tiw/2ae88d3cb31c271aaf426529d8ccca20 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
datagen = ImageDataGenerator(rescale = 1/255.0, validation_split = 0.25) | |
train_data_generator = datagen.flow_from_directory(directory="cell_images/train", target_size = (img_width, img_height), | |
class_mode="binary", batch_size = 16, subset = "training") | |
validation_data_generator = datagen.flow_from_directory(directory="cell_images/train", target_size = (img_width, img_height), | |
class_mode="binary", batch_size = 16, subset = "validation") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment