Category "keras"

Keras, TF: Do I have to label all images when adding an attribute to a mutilabel image classification model?

i have a dataset of images and built a strong image recognition model. now i want to add another label to my model. i am asking myself, if i have to label every

Converting From .pt model to .h5 model

I am using Google colab. I want to convert .pt model from my google drive to .h5 model. I follow link https://github.com/gmalivenko/pytorch2keras and https://ww

I need help to use only 8 out of 10 classes from cifar 10. Normally it loads all 10 classes

I want to perform 8 class classification only and hence need to filter any 8 classes out of 10. Please help. Thank you! Code to load cifar 10 is below #Keras li

How can I save the output of a convolution layer with and without a dilation rate as images

I want to save a image file to see about difference using convolution layer with dilation rate and without that. Of course I can search images about that, but I

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

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

Convert model.fit_generator to model.fit

I have codes in the following, train_datagen = ImageDataGenerator( rescale=1./255, shear_range=0.2, zoom_range=0.2, horizontal

how can I make a 2D softmax Layer?

I am making a network using keras library. Lets suppose that I have 2D matrix [ 0 0 1 2 0 1 2 5 1 0 0 1 ] what I want to do is obtaining the following matrix [

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

Deep learning CNN: low accuracy

I am training a convolutional neural network for binary time series classification. The training accuracy on both models is very different. If on the first it g

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' .

Failing to load model using multiprocessing on windows

This program works on Unix and I'm trying to transition it to windows. It uses multiprocessing and I understand it's an issue with being forced to use spawning

Failing to load model using multiprocessing on windows

This program works on Unix and I'm trying to transition it to windows. It uses multiprocessing and I understand it's an issue with being forced to use spawning

(Keras) ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type float)

I know this problem has been answered previously in the link below,but it does not apply to my situation.(Tensorflow - ValueError: Failed to convert a NumPy arr