Top "Keras-layer" questions

How to set the input of a Keras layer with a Tensorflow tensor?

In my previous question, I used Keras' Layer.set_input() to connect my Tensorflow pre-processing output tensor to my Keras …

tensorflow keras keras-layer
AttributeError: module 'tensorflow' has no attribute 'get_default_graph'

I am doing some task related to image captioning and I have loaded the weights of inception model like this …

python tensorflow keras keras-layer keras-2
Cannot add layers to saved Keras Model. 'Model' object has no attribute 'add'

I have a saved a model using model.save(). I'm trying to reload the model and add a few layers …

python deep-learning keras keras-layer
How to convert predicted sequence back to text in keras?

I have a sequence to sequence learning model which works fine and able to predict some outputs. The problem is …

python keras keras-layer sequence-to-sequence
How to correctly get layer weights from Conv2D in keras?

I have Conv2D layer defines as: Conv2D(96, kernel_size=(5, 5), activation='relu', input_shape=(image_rows, image_cols, 1), kernel_…

keras convolution keras-layer
Keras: find out the number of layers

Is there a way to get the number of layers (not parameters) in a Keras model? model.summary() is very …

python machine-learning keras deep-learning keras-layer
Keras: Lambda layer function with multiple parameters

I am trying to write a Lambda layer in Keras which calls a function connection, that runs a loop for …

python neural-network keras keras-layer
AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'

I have been working on keras yolov3 model for object detection. This error keeps showing up. Here is the error: …

python tensorflow keras keras-layer tf.keras
Where is the tensorflow session in Keras

I'm new to keras and tensorflow. When I write programs with tensorflow, I must bulid a session to run the …

python tensorflow keras deep-learning keras-layer