Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
56 views

mixup for gray image input and color image output

Mixup is a technique to smoothen the training of a neural network by applying convex combination to training inputs: https://keras.io/examples/vision/mixup/ In the example, the input is gray image and ...
Dr Linh Chi Nguyen's user avatar
0 votes
1 answer
50 views

ValueError: Dimension 2 in both shapes must be equal, but are 128 and 32. Shapes are [3,3,128,32] and [3,3,32,9]

I'm trying to build a model to perform reconstruction of speech by feeding image frames from a video. But during the prediction, I got the error. Please help me resolve the error. ValueError: ...
gurukishoreg78's user avatar
0 votes
1 answer
68 views

How to register a custom loss function with keras?

I am trying to use this custom loss function # calculate binary cross-entropy loss lbce = -(1/N*M) * np.mean(y_actual*np.log(y_pred) + (1-y_actual)*np.log(1-y_pred)) # calculate mean ...
Image Privacy's user avatar
0 votes
1 answer
477 views

FileNotFoundError: [Errno 2] No such file or directory for Image Dataset one-hot encoded

I tried to one-hot encoded using to_categorical() in my image dataset but I failed because of FileNotFoundError: [Errno 2] No such file or directory error and the code is given below, import os import ...
Imdadul Haque's user avatar
1 vote
1 answer
2k views

ValueError: Asked to retrieve element 0, but the Sequence has length 0 while trying to obtain image features using MobileNet

I wanted to use MobileNet to obtain features of all images present in a dataset. But the error mentioned keeps popping up. The full code that produced the error is: ` from keras.applications import ...
MAHITHA POTTI's user avatar
0 votes
0 answers
88 views

CNN loss function increases exponentially

I am trying to classify objects vs background from microscopy images. I have preprocessed the data in a function that I built that resizes the entire image and mask to 1500x1500 then splits them up ...
msshah's user avatar
  • 19
0 votes
0 answers
132 views

How can I write DSSIM+MAE loss function for model training

How can I write code DSSIM+MAE loss function from formula: Loss = αMAE + (1-α)DSSIM with Mean Absolute Error(MAE) = (1/M) * ∑|yi ...
Tipaporn Prakarnpilas's user avatar
1 vote
2 answers
619 views

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(x=train_data, epochs=EPOCHES,...
Joseph's user avatar
  • 13
0 votes
1 answer
2k views

How can I solve InvalidArgumentError: Graph execution error?

I am trying to train a deep learning model by using CNN and the transfer learning method. I used VGG16 with ImageNet as a pretrained model. My aim is to implement facial emotion recognition in Google ...
emrtz's user avatar
  • 5
0 votes
0 answers
114 views

Increases Epoch will training using ResNet50

I am using ResNet50 for training my model I have trained my model with 50 epochs and have saved model using .h5 r = model.fit_generator( training_set, validation_data=test_set, epochs=50, ...
Aniket Thorat's user avatar
0 votes
0 answers
89 views

How to spilt class from Python generator

I am working on a dataset named PlantVillage dataset for plant disease classification task, the output is multiclass and the example naming of class is 'tomato___healthy'. I want to split the class ...
Hanyi Koh's user avatar
  • 337
0 votes
1 answer
85 views

How to make sure the prediction time image input is in the same range as the training time image input?

This question is about ensuring the prediction time input images to be in the same range as the images fed during the training time. I know that it's the usual practice to repeat the same steps that ...
J. Doe's user avatar
  • 113
1 vote
1 answer
362 views

Variational AutoEncoder- Keras- logits and labels must have the same shape?

I'm walking through this example on Keras https://keras.io/examples/generative/vae/ However, I'm trying to replicate this with a 200-by-200 dimension image. The specific error I'm receiving is: ...
blankslatecoder's user avatar
1 vote
0 answers
368 views

How to highlight areas of the image due to which the neural network classifies it as Covid

I trained a keras model which classifies images as normal, pneumonia and covid-19. I need to highlight areas of the image to which the neural network reacts when classifying as Covid-19. I don't even ...
Raul Rzayev's user avatar
0 votes
1 answer
53 views

Keras Image Processing - Is this identical processing?

I have the question if I manually process the image in the same way that the train generator does. I am using python3 and keras. This is how the training data is processed. train_datagen = keras....
user7934593's user avatar

15 30 50 per page
1
2 3 4 5
8