Skip to main content

All Questions

1 vote
0 answers
19 views

How can I change my input shape in the architecture for the cnn(transfer learning)?

I have already made a model and trained it, and then saved the model along with its weights. The input shape in that model is [900,300,1] which is [height,width,channel]. I want to use the same model ...
beschichtung346's user avatar
1 vote
1 answer
91 views

why validation accuracy is stuck at 75%?

i am using tensorflow=2.15.0 and keras associated with it I have made a cnn network to identify a total of 2294 images into 10 different classes or, data is divided as 229 images are contained in each ...
beschichtung346's user avatar
0 votes
1 answer
56 views

Number of feature extraction layers in CNN

In a course I took about machine learning, we normally used about 2 feature extraction layers for image classification tasks, using MNIST or ...
evilmandarine's user avatar
1 vote
1 answer
33 views

Is it bad to average several MAEs calculated from chunks of a big test dataset?

In my regression problem, I am using Mean Absolute Error (MAE) as a metric for my network. My test dataset is too big to fit in memory, so I am reading the test dataset in chunks and then Keras' ...
ihavenoidea's user avatar
0 votes
1 answer
45 views

How do I create an Image Dataset for a CNN?

I'm currently working on assembling a CNN for image classification with tensorflow.keras. I have all my images in a file which I already uploaded to my program. Also I have CSV-Files for training and ...
Martin Gerry's user avatar
1 vote
1 answer
63 views

How to align the description of a convolutional neural network in keras with wikipedia's conceptual model?

I was going through the introductory guide to convolutional neural networks in tensor flow here And I was trying to logically map some of the code I saw to my actual understanding of how convolutional ...
Sidharth Ghoshal's user avatar
0 votes
1 answer
59 views

How do I implement convolution partially on my dataset?

I'm training a neural network on the results of a CFD simulation (or rather, 300-ish simulations with different initial conditions). The dataset contains the values for temperature, density, velocity, ...
Sisyphus's user avatar
1 vote
1 answer
122 views

How to correct ValueError about incompatible dimensions of training data set in locallyconnected1D layer NN

I'm training this simple network with a few points, but it can't train. The model looks okay, but when training it raises a ValueError about the dimension of the training data sets. Could someone help?...
KaRJ XEN's user avatar
0 votes
1 answer
863 views

Keras CNN model is throwing as error message as 'ValueError: Layer 'conv1d_12' expected 2 variables, but received 0 variables during loading'

Hope you're in good health and doing great. I am trying to implement a CNN model to help predict kidney stones. Now, this model is running as expected on my local machine, but when I try deploying the ...
Suvam Kumar's user avatar
0 votes
0 answers
2k views

ValueError: Input 0 of layer "model_12" is incompatible with the layer: expected shape=(None, 256, 256, 3), found shape=(256, 256, 3)

I am following this keras example with my own dataset, which has 3 classes. I load the images using ...
Javi's user avatar
  • 103
1 vote
0 answers
117 views

Why is my segmentation model not returning a heat map?

I have implemented two CNN architectures to perform segmentations on medical images: the classic UNet and a modified version called the Attention UNet. I have been training the models on roughly 50,...
Noam's user avatar
  • 11
0 votes
0 answers
1k views

` TypeError: int() argument must be a string, a bytes-like object or a number ` raised when fitting a multi input Keras model

I'm currently building a U-net model handling multiple input streams of data with Keras/Tensorflow's Functional API. Even though my model compiles, it raises a TypeError when I try to fit it. This ...
ydemers's user avatar
0 votes
1 answer
53 views

Strange results from CNN in Keras

I have a binary classification problem. I designed a model with convolution kernels in first layers and then dense layers. As the output layer, however, I used a softmax layer with size 2, and then ...
Farzad's user avatar
  • 43
0 votes
1 answer
274 views

Model does not learn when using Keras 'flow_from_directory', but learns fine with 'image_dataset_from_directory'?

When classifying images with Keras, I am able to achieve a validation accuracy around 90-95%, however, I am trying to improve with the use of augmentation so have switched from ...
BDI's user avatar
  • 1
0 votes
0 answers
27 views

Keras Custom Layer Aware of Position in Network

I'm writing a custom Layer in TF/Keras (tf.keras.layers.Layer) for a CNN, and I need each layer to know its own depth in the model. Is there any way I can do this, ...
Liam F-A's user avatar

15 30 50 per page
1
2 3 4 5
11