Open rahiakela opened 4 years ago
Same problem here :) @rahiakela did you manage to solve this in some way? As a workaround, I actually set the batch_size
to 20 again, so that steps_per_epoch * batch_size
is not more than 2000, which is the amount of examples in the train dataset. I increased the amount of epochs to 150 in order to "compensate"...
Yes, I was able to tackle it, you can see the working example of my notebook. https://github.com/rahiakela/deep-learning-with-python-francois-chollet/blob/5-deep-learning-for-computer-vision/2_training_convnet_from_scratch_on_small_dataset.ipynb
Nice! But you could obtain better performance by setting steps_per_epoch=100
, batch_size=20
and epochs=150
. This should make your curves less noisy. Look at my example here: https://github.com/lucone83/deep-learning-with-python/blob/master/notebooks/chapter_05/02%20-%20Using%20convnets%20with%20small%20datasets.ipynb
Thanks for suggestion...its worked as expected.
I am trying to train model with data-augmentation generators on TensorFlow 2.0 using below code.
But on first epoch, getting this error:
Please let me know how should I modify the above code base for TensorFlow 2 ?
Thanks Rahi