Kernel dies when trying to fit the CNN Model

Issue

I am trying the build a CNN model for face recognition using Anaconda Jupyter Notebook. The following versions are used:

python==3.7.13
tensorflow==2.6.0
keras==2.6.0
numpy==1.21.5

The following code was run to fit the CNN model.

classifier.fit(training_set, steps_per_epoch=30, epochs=10, validation_data=test_set, validation_steps=10)

But the kernel dies giving the message ‘The kernel appears to have died. It will restart automatically’. Reinstalling numpy & mlk worked once, but not works anymore.

How could I fix this?

Solution

Creating a new Python 3.7.13 environment in Anaconda and installing the packages Tensorflow, Keras, Pillow worked!

Answered By – Dakshila Kamalsooriya

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published