Question: Now it's time to load the train and validation datasets. Pick the right folders, as well as the right target _ size of the images

Now it's time to load the train and validation datasets. Pick the right folders, as well as the right target_size of the images (it needs to match the height and width input of the model you've created). If you'd like a reference, you can check out notebook 05b.
# load and iterate training dataset
train_it = datagen.flow_from_directory('data/fruits',
target_size=(224,224),
color_mode='rgb',
class_mode="categorical")
# load and iterate validation dataset
valid_it = datagen.flow_from_directory('data/fruits',
target_size=(224,224),
color_mode='rgb',
class_mode="categorical")
Found 1511 images belonging to 2 classes.
Found 1511 images belonging to 2 classes.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!