Category "tensorflow"

TypeErropr when running model_main_tf2.py

when running model_main_tf2.py on visual studio code 2022, I am receiving a type error. i will leave the code i am running, and the error statement below. i am

Use multiple images for batch inference cppflow C++

I'm trying to use cppflow library in windows 10 x64 machine in VS2019 C++. I want to inference my model for batch of images (vector <cv::Mat> ). I write a

ValueError: Shapes (None, 1) and (None, 3) are incompatible

I have a 3 dimensional dataset of audio files where X.shape is (329,20,85). I want to have a simpl bare-bones model running, so please don't nitpick and address

Getting "ValueError: 'outputs' must be defined before the loop." error while fitting model

I made a CNN model for training b/w images for training it on TPU on dimension of 100*100. Added the basic callback but after running it, it was giving outputs

Keras CNN, Incompatible shapes: [32,20,20,1] vs. [32,1]

I'm trying to reconstruct in Python the Gradient Transformation Network model in the paper titled : Single Image Super-Resolution Based on Deep Learning and Gra

Keras Model doesn't seem to be loading weights?

I can get the model to train effectively. However, I am now having a problem with it comes to loading the model and testing it on new data again. I was able t

Why is Tensorflow image classification model overfitting? [closed]

I've been working a food image classification model. I started off with the TensorFlow tutorial and modified the model (code below). The model

Custom metric for Face Alignment model, using Tensorflow 2.5

I want to add a Normalized Mean Error (NME) metric to model using TF. The NME is commonly used in the evaluation of the face alignment tasks. For that, I use th

Custom keras loss function binary cross entropy giving improper results

Did anyoe have a convincing solution to make custom_binarycrossentropy work? I tried all possible methods (even making the whole training data size same as the

Keras loss value significant jump

I am working on a simple neural network in Keras with Tensorflow. There is a significant jump in loss value from the last mini-batch of epoch L-1 to the first m

Labmap.pbtxt file creation

I am trying to create my labelmap.pbtxt, but the file is not created. Here's the code Train_Annotations_Path = "C:/Users/JAAD_dataset/Workspace/annotations/Anno

Deeplearning with Python Tensorflow,Keras

I am writing masters thesis about deeplearning and have a problem probably about library. Below is the error: AttributeError: module 'tensorflow.compat.v2' has

Resize image in cppflow tensorflow c++

Using cppflow, I have a 224x224 jpeg that I am trying to resize to 128x128. auto input = cppflow::decode_jpeg(cppflow::read_file(std::string(filename))); auto r

Tensorflow: Could not load dynamic library 'libcusolver.so.11'; dlerror: libcusolver.so.11: cannot open shared object file: No such file

I've been trying to run tensorflow in my gpu for some long days but I've been not able to accomplish it. I know that there are several questions with similar qu

Does image classification transfer learning require negative examples?

Task is to determine which of 3 classes does an image belongs to, or none. I received a ready model. EfficientNet B4 with ImageNet weights had transfer learnin

Loading TensorFlow model to manipulate an audio stream with C++

I want to load a machine learning model created with TensorFlow into my C++ Audio Application made with JUCE6. In order to use TensorFlow inside C++, I am using

Cannot set tensor: Dimension mismatch. Got 3 but expected 4 for input 0

This is probably going to be a stupid question but I am new to deep learning and TensorFlow. Here I have converted my deep learning model to TF-lite, after that

PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object

I am trying to train my model (Image classification) using Tensorflow. I keep getting an error when I try to run the following cell: hist = model.fit(

PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object

I am trying to train my model (Image classification) using Tensorflow. I keep getting an error when I try to run the following cell: hist = model.fit(

Keras model.fit() runs faster on GPU when the CPU is loaded with a heavy multiprocessing script

I wasn't expecting this to happen. The relevant code pieces are: import os import tensorflow as tf os.environ['TF_XLA_FLAGS'] = '--tf_xla_enable_xla_devices' .