Category "tensorflow"

ModuleNotFoundError: No module named 'tensorflow.python.eager' when loading Sequential model

When attempting to import Sequential from keras.models, I get the error shown below. I have already uninstalled and reinstalled tensorflow through PIP, but am n

Tensorflow AttributeError: module tensorflow has no attribute v1

A Python Tensorflow Keras app runs Azure VM Windows Server 2019 Datacenter. I copied the requirements.txt file and install on a 2nd VM. On the statement "impor

What do parentheses do when used after a variable in Python?

This question might be stupid but I don't know Python well enough to know what's going on. So I was trying to learn TensorFlow and noticed this weird invocation

UnimplementedError: Graph execution error: running nn on tensorflow

I have been having this error, and I don't know why, especially since I am following someone's code exactly and the person had no error when running this img_sh

ValueError: Input 0 of layer "lstm" is incompatible with the layer: expected ndim=3, found ndim=2. Full shape received: (None, 1024)

I was following Transfer learning with YAMNet for environmental sound classification tutorial. Here is the link: https://www.tensorflow.org/tutorials/audio/tran

Basic CNN classification model has UnimplementedError: Graph execution error:

I tried a sample code for CNN application on MNIST data classification from the book : from keras import layers from keras import models model = models.Sequent

Jupyter notebook failed to process training data

I'm trying to make a classification on an image with the CNN algorithm. When I tried to run it on jupyter notebook(anaconda) it didn't work, but when I run it o

How do I include the bias term with other weights when performing gradient descent in TensorFlow?

I'm a beginner with ML and have been following the Coursera intro syllabus. I am trying to implement the exercises using TensorFlow rather than Octave. I have t

How to replace make_one_shot_iterator () from google machine learning crash course

I am following the Google Machine Learning Intensive Course. But it uses version 1.x of TensorFlow, so I was planning to change the exercises to be able to run

How to replace make_one_shot_iterator () from google machine learning crash course

I am following the Google Machine Learning Intensive Course. But it uses version 1.x of TensorFlow, so I was planning to change the exercises to be able to run

tensorflow model.evaluate and model.predict very different results

I am building a simple CNN for binary image classification, and the AUC obtained from model.evaluate() is much higher than AUC obtained from model.predict() + r

Heroku : tensorflow 2.2.1 too large for deployment

im trying to deploy a keras project to heroku but pushing to the repository master branch seems to be problematic for me as the following error is reported ever

How does keras.evaluate() calculate the loss?

I am building a MLP using TensorFlow 2.0. I am plotting the learning curve and also using keras.evaluate on both training and test data to see how well it perfo

Reshape the input for BatchDataset trained model

I trained my tensorflow model on images after convert it to BatchDataset IMG_size = 224 INPUT_SHAPE = [None, IMG_size, IMG_size, 3] # 4D input model.fit(

Using tf.data.Dataset as training input to Keras model NOT working

I have a simple code, which DOES work, for training a Keras model in Tensorflow using numpy arrays as features and labels. If I then wrap these numpy arrays usi

Run keras.Models.fit() in graph

How to run keras.model.fit() in graph not with eager execution...?? I tried to run my model in graph by using tf.compat.v1.disable_eager_execution(), but the c

Follow-up question regarding a Keras model issue

So about a week ago I posted this question: Issues running a Keras model with custom layers. The suggestion there was to try to make this question smaller and t

Interpreting loss and metric curve

I am trying to train Unet model with the following parameters: droput_: 0.2, activation_: sigmoid, activation_inner_: relu, learning_rate_: 0.0001, epsilon_: 1

Negative gradients when calculating GradCAM heatmap

I have a Segmentation network model trained for 2 classes and am able to see accurate results. But when using grad-cam for the heatmap, I am able to see good re

Converting tensorflow dataset to pandas dataframe

I am very new to the deep learning and computer vision. I want to do some face recognition project. For that I downloaded some images from Internet and converte