Category "tensorflow"

TensorFlowLite tensor with type UINT8 and a Java object of type [[F (which is compatible with the TensorFlowLite type FLOAT32)

I was creating a mobile app that can recognize images using flutter and I got this runtime error when testing the app. Caused by: java.lang.IllegalArgumentExcep

ValueError: Data cardinality is ambiguous (x sizes: 60000 y sizes: 10000 Make sure all arrays contain the same number of samples.)

I'm using mnist dataset for my project on VsCode IDE. Following is the complete code. what is it that I'm doing wrong and how can I solve this error? # Import L

Keras FER-2013 model predict for a single image

i'm pretty new to machine learning. I followed a tutorial to classify if the user is similing or not. I created this code: def get_model(input_size, classes=7):

How to match the input image with the ground truth image (the order)

I'm a beginner learning deep learning and trying to do semantic segmentation problems on histologic image using python and TensorFlow. There is 2 main file : Im

Keras-tuning can't find callback

I am using keras-tuner in order to obtain the best set of hyperparameters for my model. I can reproduce my problem for a random dataset: def generate_data(n_win

Dependencies issue while installing model card toolkit

Model Card --> Model Card toolkit I want to install a model card toolkit in my python virtual environment through this command: pip install model-card-toolk

Keras model `logits` and `labels` must have same shape (None, 2) vs (None, 1)

I have a keras model trained for occupancy detection of parking spaces, which I load using keras.models.load_model(PATH_TO_MODEL). The input for the model is a

Handwriting detection with keras : using a `tf.Tensor` as a Python `bool` is not allowed in Graph execution

I've tried to run a code example (hosted on keras.io) regarding the handwriting recognition task. While playing with the code, I faced a TensorFlow-related issu

Importing Adam and ImageDataGenerator on google colab failed

I'm implementing a UNet neural network but I'm having some issues while importing libraries. I found a solution for a couple of them, but I still have a problem

Dividing a large file into smaller ones for training

I have a very large file and I want to divide it into smaller ones for training. I've read about pickle files, so I split the large file into training-validatio

tensorflow load_weights( ) gives different prediction when loaded from a different path

I am training a DCN model for ranking purpose. After training, I use model.save_weights(filepath) to save the weights. And I load the weights using model.load_w

fedprox tensorflow federated (TypeError: cannot unpack non-iterable LearningProcessOutput object)

iterative_process = tff.learning.algorithms.build_unweighted_fed_prox( model_fn, proximal_strength= 0.5, client_optimizer_fn=lambda: tf.keras.optim

How can fit a keras model with a dataframe of numpy arrays?

I want to train a model with self-generated matrices (word vectors). My data have the following datatypes: print(type(X)) print(type(X[0])) print(type(X[0][0]))

How can i do many things to configure data with keras

I am a beginner learning deep learning by Keras. The ImageDataGenerator class in Keras and the flow_from_directory function made it easy to label images. But al

Unexpected behavior in tf.data.Dataset map function

I am working on a problem where I need to apply some transformation to my dataset using the map function that tf.data.Dataset provides. The idea is to apply thi

Model Accuracy is High but Val_Accuracy is low

I'm trying to improve my val accuracy as it is very low. I have tried changing the batch_size, the number of images being used for validation and training. Adde

Python-TensorFlow app FileNotFoundError: [Errno 2] No such file or directory

I am trying to test a simple Flask-TensorFlow Image Classifier app from docker container. The Docker containers were successfully deployed in an Ubuntu 22.10 EC

Failed to build h5py on mac M1

I am trying to install AlphaFold in a python virtual env. While trying to install dependencies, I get this error: ERROR: Could not find a version that satis

facing problems in installing tensorflow

I am facing problem in instaling tensorflow, please help me. Here is the error that I get: ^3.1 npm ERR! code 1 npm ERR! path C:\Users\dell\node_modules\@tensor

facing problems in installing tensorflow

I am facing problem in instaling tensorflow, please help me. Here is the error that I get: ^3.1 npm ERR! code 1 npm ERR! path C:\Users\dell\node_modules\@tensor