Questions tagged [tf.keras]

[tf.keras] is TensorFlow's implementation of the Keras API specification. Use the tag for questions specific to this TensorFlow module. You might also add the tag [keras] to your question since it has the same API.

is TensorFlow's implementation of the Keras API specification. Use the tag for questions specific to this TensorFlow module. You might also add the -tag to your question since it has the same API.

gives you the power and flexibility of Keras within TensorFlow (see the docs with a lot of examples). The API of is described here

1494 questions
-1
votes
2 answers

What is more efficient for card recognition? Text and small image or image of the entire card?

I want to create a Keras/TF model to recognise Magic the Gathering Cards. The cards could be in different languages. Does it make more sense to recognise the card name on top and the edition of the card, or just the artwork and edition? What is more…
-1
votes
1 answer

Why model's loss is always revolving around 1 in every epoch?

During training, loss of my model is revolving around "1". It is not converging. I tried various optimizer but it still showing the same pattern. I am using keras with tensorflow backend. What could be possible reasons? Any help or reference link…
Rahul Anand
  • 369
  • 1
  • 2
  • 14
-1
votes
2 answers

Keras simple feed-forward network input shape error

I am trying to train a very simple feed forward network in Keras. I want to give the network 1800 numbers, and have it activate 1 of 6 outputs. My model is set up as follows: model = keras.Sequential([ keras.layers.Dense(256, input_dim = 1800,…
user5597655
-1
votes
1 answer

Why is my neural network always giving me the same predictions?

I'm trying to create a sequential neural network where the output is 12 non-exclusive probabilities ( probability of A, probability of B, probability of C, ... ). My network seems to learn the most common output and always predict that for every…
Mack
  • 11
  • 3
-1
votes
1 answer

Running Keras MNIST example on Ubuntu 18.04 - GPU error

I was running the following Keras/TensorFlow code code after setting up Anaconda 2018.12 on Ubuntu 18.04. I have Nvidia driver 390.116 and have a GTX 1070 GPU. However, when I try to run this simple MNIST example import tensorflow as tf mnist =…
cmillsap
  • 11
  • 3
-1
votes
1 answer

Is there any library to build generators for keras.Model.fit_generator?

keras.preprocessing.image.ImageDataGenerator is used create Generators for Image input. Is there any similar kind of library available for normal numpy array input?
aspdeepak
  • 2,077
  • 1
  • 25
  • 34
-2
votes
1 answer

How to load a model with tf.keras?

import tensorflow as tf Tensorflow 2.0 i saw that i can load a model from tensorflow like this image_model = tf.keras.applications.MobileNet(include_top=True, weights='imagenet', pooling='avg') Now i want to be able to load models from local…
cUser
  • 303
  • 3
  • 16
-2
votes
1 answer

What should be the input-shape number when i am adding the input layer in my ANN, considering that I have preprocessed the data with OneHotEncoder?

My dataset has categorical and numerical features. The dataset has 7 independent variables and 1 dependent variable (called as a product). The dataset looks like this: In general, there are 3 categorical variables, where 7 different categories…
-3
votes
1 answer

TensorFlow 2.4.0 - Parameters associated with BatchNorm and Activation

I am printing a tensorflow.keras.Model instance summary. The type is tensorflow.python.keras.engine.functional.Functional object. This model has layers with activations and batch normalization associated. When I print the list of parameters, I…
matte
  • 89
  • 8
1 2 3
99
100