Data augmentation in EfficientNetB0 makes accuracy 2% worse? #156
-
In lecture 163 doing transfer learning, classification of 10 food types w/ and w/o data augmentation. with identical models (except for the data augmentation) the model w/o augmentation does 2% better accuracy. Daniel points that out. He does not discuss why that occurs. Does the explanation come later in the course? I have been researching my own question on data augmentation. It seems to me that creating a layer like this: data_augmentation = Sequential([ |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
data augmentation can have really good results on your model or maybe worsen your model in general augmentation helps model to generalize the data but some times it lowers accuracy as images its training on are really different from images it's predicting on |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer. Just to be sure i have this right... per the code below, If i have 100 images in the training set, the model will analyze 300 images, because each image will modified in 3 ways, and none of the original will 'make it thru to the model'. Sequential([ |
Beta Was this translation helpful? Give feedback.
-
As a follow on... if i wanted the originals to be seen by the model, I could add a 4th line... Sequential([ This way, the model sees three changed versions of each image PLUS the original. |
Beta Was this translation helpful? Give feedback.
data augmentation can have really good results on your model or maybe worsen your model
after you done data augmentation model get's some images which are modified from original data ( you are doing some operations on images while doing data augmentation ) but while model is predicting on the test data the images are not augmented they are provided as they are because of that you may experience some lower accuracy
in general augmentation helps model to generalize the data but some times it lowers accuracy as images its training on are really different from images it's predicting on