Category "keras"

ImportError: Imageio Pillow requires Pillow, not PIL! on M1 Mac

This question might have been asked several times but I am not able to resolve the error. I have pillow, imageio and other libraries installed on my M1 Mac. But

ImportError: Imageio Pillow requires Pillow, not PIL! on M1 Mac

This question might have been asked several times but I am not able to resolve the error. I have pillow, imageio and other libraries installed on my M1 Mac. But

How to input a history of vectors to LSTM based network instead of a single vector?

I am trying to predict a simple pattern using LSTM based network. I input a single vector and get the output vector with the same shape as a prediction. How can

Google Colab error: Import "tensorflow.keras.models" could not be resolved(reportMissingImports)

import tensorflow as tf tf.__version__ !sudo pip3 install keras from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Conv

one classifier for multi-labels with autokeras, data table

i have a data table with 5 labels. i want to use autokeras to Build one classifier that predict all the labels by same X. i tried: clf0 = ak.StructuredDataCla

Models in Tensorflow Federated get stucked at 0.1 accuracy

I'm trying train a federated model for the mnist dataset. I am using the code avaible at https://www.tensorflow.org/federated/tutorials/simulations for the setu

Why do I get this error while calling predict in Keras?

I'm a newbie to Tensorflow, I've done many models but today when calling predict I get this error : ValueError: Exception encountered when calling layer "sequen

Invalid Argument Error / Graph Execution Error

I'm having multiple errors while running this VGG training code (code and errors shown below). I don't know if its because of my dataset or is it something else

ValueError: `logits` and `labels` must have the same shape

I'm trying to use Imagenet V2 with transfer-learning for multiclass classification (6 classes), but getting the following error. Can anyone please help? ValueEr

Error when loading a custom layer from config

I have a custom preprocessing layer which basically takes the input and applies the preprocessing function of a pretrained network coming from tensorflow.keras.

tf.data pipeline from large numpy arrays for a multiple input, multiple output Keras model and distributed training

This question relates to the optimal setup for a multiple-input multiple-output Keras (Tensorflow) model given corresponding numpy arrays. For example, suppose

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):

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

I'd like to change the Keras to a pytorch, but I don't know how to build a neural network

The HAR dataset should be analyzed using LSTM and 1D CNN. I need to check the graph of the change in loss and check the confusion matrix. I don't know how to ma

How to train only the last convolutional layer?

Could you help me with the code such that along with the dense layers also the last convolutional layer of Efficientnet is trained as well ? features_url ="http

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