Search code examples
kerasgoogle-colaboratory

'Runtime died. Automatically restarting.' when running Keras model with a large amount of data


I'm running a simple Keras model (taken from the keras MNIST example) with my own custom training images and labels. Each image is of size 150 by 150.

I have 81472 images in the training set and 20368 images in the test set.

As soon as I run the Keras model, Colabs shows 'Runtime died. Automatically restarting.'


Solution

  • It seems like you're running out of memory and the system is hence restarting.