C2W2 - Assignment not reaching 80% accuracy

Hi,

course : DeepLearning.AI TensorFlow Developer Professional Certificate

Course 2 - CNN with image augmentation

In C2W2 , Cats vs Dogs classification using Data Augmentation , should get 80% as accuracy with 15 epochs but I am getting only 78.

I have applied 90 as batch for training and 10 as batch for validation

Applied same parameter values what is shown during training videos for image augemtation.

Any help will be appreciated

Epoch 15/15

250/250 [==============================] - 165s 661ms/step - loss: 0.4544 - accuracy: 0.7835 - val_loss: 0.4166 - val_accuracy: 0.8040

Please start with a batch size of 32 & explore from there. Did you rescale the images as part of using ImageDataGenerator ?

Thanks Balaji. Finally I fixed it.

  1. Reduced number of filter layers - instead of 32,64,128… set it to Do not post direct solutions to your query, instead a hint should be mentioned
  2. Changed the optimizer to Adam
  3. Batch size set to do not provide direct solution to your queryfor training and validation
  4. Yes rescaled both training and validation images

Epoch 15/15
250/250 [==============================] - 166s 664ms/step - loss: 0.3843 - accuracy: 0.8279 - val_loss: 0.3312 - val_accuracy: 0.8460

4 Likes

Hello i have same architecture with you, how much ETA you got? do you use colab pro or not?
Thank you

when I switched to adam from RMSprop and with 5 Conv2D layers, it worked on 25the epoch for me.

1 Like