Top "Keras" questions

Keras is a neural network library providing a high-level API in Python and R. Use this tag for questions relating to how to use this API.

Reset weights in Keras layer

I'd like to reset (randomize) the weights of all layers in my Keras (deep learning) model. The reason is that …

python tensorflow machine-learning keras keras-layer
Tensorflow not running on GPU

I have aldready spent a considerable of time digging around on stack overflow and else looking for the answer, but …

tensorflow keras nvidia cudnn
TensorFlow: Blas GEMM launch failed

When I'm trying to use TensorFlow with Keras using the gpu, I'm getting this error message: C:\Users\nicol\Anaconda3\…

python tensorflow keras blas
What is the correct way to change image channel ordering between channels first and channels last?

I can not for the life of me figure out how to switch the image ordering. images are read in (…

python numpy machine-learning keras theano
How to stack multiple lstm in keras?

I am using deep learning library keras and trying to stack multiple LSTM with no luck. Below is my code …

tensorflow deep-learning keras lstm keras-layer
Unknown initializer: GlorotUniform when loading Keras model

I trained my CNN (VGG) through google colab and generated .h5 file. Now problem is, I can predict my output …

python tensorflow machine-learning keras google-colaboratory
How to delete a locally uploaded file on google colab?

I'm trying to delete a file that I uploaded on Google colab using the following code: from google.colab import …

python-3.x keras jupyter-notebook google-colaboratory
How does the Flatten layer work in Keras?

I am using the TensorFlow backend. I am applying a convolution, max-pooling, flatten and a dense layer sequentially. The convolution …

tensorflow neural-network keras keras-layer
What do I need K.clear_session() and del model for (Keras with Tensorflow-gpu)?

What I am doing I am training and using a convolutional neuron network (CNN) for image-classification using Keras with Tensorflow-gpu …

python tensorflow memory-management keras
ValueError: Shapes (None, 1) and (None, 2) are incompatible

I am training a facial expression (angry vs happy) model. Last dense output layer was previously 1 but when i predict …

tensorflow keras cnn