WARNING:tensorflow:Your input ran out of data; interrupting training

I’m getting this error and I don’t know what to do

Epoch 1/15
1/8 [==>…] - ETA: 19s - loss: 0.6986 - accuracy: 0.3625WARNING:tensorflow:Your input ran out of data; interrupting training. Make sure that your dataset or generator can generate at least steps_per_epoch * epochs batches (in this case, 120 batches). You may need to use the repeat() function when building your dataset.
8/8 [==============================] - 3s 48ms/step - loss: 0.6986 - accuracy: 0.3625

1 Like

Do you have a good reason for setting steps_per_epoch ?

when i remove it i get this :

Saw your notebook. Please specify parameters correctly for callback to get triggered.
Do revise the NN architecture for better results.