The code is :
train_generator = train_datagen.flow_from_directory(directory=TRAINING_DIR,
batch_size=100,
class_mode=‘binary’,
target_size=(150, 150))
but as per the details for marks, it is given as :
Details of failed tests for train_val_generators
Failed test case: target_size has incorrect value for train_generator.
Expected:
(150, 150),
but got:
(300, 300).
Let me know where I had gone wrong.
I am not familiar with that course, but it’s pretty clear that your shapes are wrong. So now you need to debug how that happened. What determines the shapes? You must be passing incorrect parameter values somewhere.
Also note that you filed this question under “General Discussion”. You’ll generally have better luck if you file it for the course and topic that you are asking about. These forums cover quite a few specializations at this point. You can use the little “edit pencil” on the title to move it without having to recreate it from scratch.