Questions tagged [cnn]

Convolutional Neural Networks (CNN, also called ConvNets) are a tool used for classification tasks and image recognition. The name giving first step is the extraction of features from the input data.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

How can I tell if my CNN tuning made a difference?

I'm working on a detection CNN, estimates pose for some classes of objects. I am able to compute a bunch of different metrics on performance, things like position error, rotation error, tracking ...
Mr Squid's user avatar
  • 101
0 votes
0 answers
18 views

Training with few samples, dropping training loss but constant validation loss

I am training a resnet50-based model using transfer learning. My dataset has 10 classes and about 10 occurrences per class, so it is very small. The training loss is decreasing steadily to 0.07 for ...
ml_nnoobb's user avatar
0 votes
0 answers
56 views

Design a CNN that can detect the face in the given input image

a. What strategy will you use? How many layers? How many filters? b. Describe the filters for each layer in detail. c. Show how the convolutions will work and demonstrate that your CNN will be able to ...
Sweta 's user avatar
0 votes
1 answer
100 views

What may cause the CNN layer weight regularizer to reduce the model accuracy

What may cause the accuracy reduction when using the tf.keras regularizer at layers in CNN in the symptom? The example is simple but it happens with more complex CNN causing no improvement during the ...
mon's user avatar
  • 575
0 votes
0 answers
22 views

how do I label my images for computer vision

So I want to do shape recognition task on a flowchart using CNN, but my input images are not labeled and I don't know how to do that automaticaly I mean not manually, anyone can help me please ?
kardev's user avatar
  • 1
0 votes
1 answer
28 views

Converting a Standard LSTM RNN over to a Transformer Model

I am looking for some advice on converting my existing CNN/LSTM RNN over to a Transformer type model. This regression model takes a sliding window size of 240 rows with 33 features. It aims to ...
Ted Wilmont's user avatar
0 votes
1 answer
54 views

Adding multi-image context to a CNN

I'm looking for an approach to classify a similar dataset to the exposed next. Let's say we have an image with some elements inside it (imagine a large building footprint with several structures). ...
Alejandro Graciano's user avatar
0 votes
0 answers
21 views

Why does the AutoKeras NAS require reshaping of data?

Please take a look at the following source codes: training.py ...
user366312's user avatar
0 votes
0 answers
13 views

Tensorflow outputs nan for basic object detection/classification

I am receiving nan as my accuracy and loss outputs after each epoch for basic object detection in tensorflow. Also, my results (classification and bounding box ...
Clouseau's user avatar
0 votes
1 answer
24 views

Binary Classification of Images- CNN

I am learning ML and am working on a CNN problem where I need to classify images of CATS and DOGS. The way I have setup the labels is that cats are 1 and dogs are 0. I have made the final output layer ...
Hussain Bhavnagarwala's user avatar
0 votes
0 answers
48 views

Value Error: One of the dimensions in the output is <= 0 due to downsampling in conv1d_9

i am trying to implement classification model on my dataset, which has 3 columns and 651 rows Displacement Time Labels 0.000245879 0.01 Undamage 0.001954869 0.02 Damage 0.006545664 0.03 Undamage 0....
Shagufta's user avatar
0 votes
0 answers
26 views

Is it the right approach to select the model when it gives highest accuracy on validation dataset?

I am training the Densenet121 Model on an image dataset. I divided the dataset into 80% for training and 20% for testing. Then I further divided the training data into 85% for training and 15% for ...
Dawood Ahmad's user avatar
0 votes
0 answers
10 views

What are the most important hyperparameters to tune to optimize the training of a 3D U-NET used for pixel classification?

Leaving aside the training loss, the optimizer (ADAM), the number of U-NET blocks (tuned to a meaningful target receptive field for the problem) and the number of filters per layer (set to the maximum ...
Sebastien's user avatar
1 vote
1 answer
42 views

Deep learning model produces very different results when classifying the same samples

I'm trying to design a simple deep learning application for biometric system verification, but every time I run the application I get very different results and I can't figure out why. I don't use ...
uuR's user avatar
  • 11
0 votes
0 answers
27 views

Torchvision Faster-RCNN, modified loss function

I'm trying to solve a problem of table detection in spreadsheets in Excels. I've came across this paper, which suggests to use modified version of Faster RCNN to do object detection on the ...
sagi's user avatar
  • 101
0 votes
2 answers
19 views

Looking for suggestions on the model/algorithm for 2D row labeling

As an experiment, I'd like to train a model to label a few rows of data on a 2D tensor. F.e. on a black and white image, label the "darkest" and "lightest" row. Is this a task for ...
Sergey Aldoukhov's user avatar
0 votes
0 answers
17 views

How to train a CNN when the shape of the training images are too different?

I want to build a CNN model for classifying cracks. The dataset I am using has been prepared from a raw dataset. (I don't have access to that) Now the problem is, in the dataset, each image is of a ...
data scientist's user avatar
0 votes
0 answers
12 views

Timeseries timestep changes in deployment

Im working with spatiotemporal data and I'm wondering if I train my model on a timeseries with a certain timestep, do I need to have the same timestep when I deploy the model and make predictions? ...
Theta's user avatar
  • 1
0 votes
0 answers
12 views

Does the LSTM model recognize the spatial and temporal pattern in my input data?

I have data from a row of sensors that sense a body passing over it. The data is of the shape (NS, NT) where NS is the total number of sensors and NT is the total number of time steps. The sensor data ...
divyaprakash's user avatar
0 votes
0 answers
37 views

3D CNN accuracy is too low, how to improve it?

I have just started learning image processing and this is my first time working on video classification. I am trying to develop a model that recognizes hand gestures using the EgoGesture dataset(more ...
esyilmaz's user avatar
0 votes
0 answers
119 views

Failed to find data adapter that can handle input: (<class 'list'> containing values of types {"<class 'numpy.ndarray'>"})

...
abhi singh's user avatar
0 votes
0 answers
33 views

Flickr8k+PyTorch, CNN+LSTM predicts always same words during model testing

I'm a beginner in Machine Learning and I'm working with the Flickr8k dataset (it contains ~8000 images, every image has 5 captions: ~40000 pairs). I splitted the dataset in training (70%) and ...
lampaDT's user avatar
0 votes
1 answer
55 views

What Deep Learning model to use in this spectroscopy task?

I have a task to be solved. There are energy measurements over the square area 40x40. One measurement consists of values : x, y and the energy. The all area is almost whole covered with data (a few ...
Szymon Roziewski's user avatar
0 votes
1 answer
36 views

Train CNN weights by using FFT - Reinforcement Learning?

Assume that you are doing convolution inside a CNN network, by using FFT because FFT is much way faster than using 4-5 for-loops etc. But how should I train the weights if I know the output of my CNN ...
euraad's user avatar
  • 115
0 votes
0 answers
9 views

Architectures for continuous vector labels prediction

I have a small dataset of feature vectors of size 200 to each corresponds a larger vector of size 1000. I would like to "predict" a large vector for every small one. The task sounds like ...
Denis Marcinkov's user avatar
0 votes
0 answers
5 views

Techniques for training a CV model based on PDF markup

Given a PDF of a home blueprint (e.g. https://www.roomsketcher.com/content/uploads/2023/04/blueprint-maker.jpg), what are techniques and approaches for training a CV model to lean how a user would ...
Vendetta's user avatar
0 votes
1 answer
55 views

Custom Loss Function in Tensorflow for UNet

I am working on a Segmentation task, where I planned to use U-Net for the input_image of shape (224,224,3), the output should be the mask image of shape ...
Vishak Raj's user avatar
1 vote
0 answers
17 views

Can CNNs complete lines and contours?

Are there deep convolutional networks capable of recognizing two overlapping triangles in this image - or is this beyond the capabilities of CNNs? And are there CNNs that can recogize two boxes ...
Hans-Peter Stricker's user avatar
0 votes
1 answer
24 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
0 votes
0 answers
23 views

Confusion with FC Layer Neurons and Output Shapes in CNN-based Sentiment Analysis Model

I am currently working on a sentiment analysis model for text data, and I'm using a Convolutional Neural Network (CNN) architecture. This is my first time implementing a CNN, and I'm facing issues ...
Devansh Gupta's user avatar
0 votes
0 answers
20 views

Input shape CNN speech

The shapes of x_train=(514, 256), y_train=(514,) x_test=(254, 256), y_test=(254,) I have 256 features and 770 samples of which ...
Srikanth's user avatar
2 votes
1 answer
588 views

Input dimensions for the EfficientNetV2 family of models

I have a question regarding the EfficientNetV2 family of models. If my understanding is correct there are 6 models under this family - B0 to B1 & S are the comparatively smaller models while M &...
th2797's user avatar
  • 23
0 votes
0 answers
32 views

Gradients of lower layers of a CNN when gradient of an upper layer is 0?

Say we have a convolutional neural network with an input layer, 3 convolutional layers and an output layer. Say the gradients with respect to the weights and biases of the third convolutional layer ...
VJ123's user avatar
  • 147
0 votes
1 answer
50 views

I have created a CNN model and now i want to draw its architecture diagram can anyone help me with that

following is my architecture: ...
Dee Coder's user avatar
0 votes
1 answer
36 views

Issue with Convolutional Layer in Python: Getting All Zeros in Output and Terminating at a Certain Iteration

I'm currently working on implementing a convolutional layer in Python for a natural language processing model. However, I've encountered an issue with the convolutional layer that I can't seem to ...
Devansh Gupta's user avatar
0 votes
0 answers
58 views

Binary classification metrics for one-hot label encoding in Tensorflow

I run a binary classification using different CNN versions in Tensorflow. When I label samples from each class using 0 and 1, I select a sigmoid output in the last layer of the CNN, like ...
GKH's user avatar
  • 101
0 votes
2 answers
45 views

Dropout and BatchNorm decrease speed of learning

Experimenting with the cifar10 dataset and faced with strange behavior when Dropout and BatchNorm don't help at all. As I get: Dropout - freezing some of the weights which helps us to prevent ...
kirsanv43's user avatar
  • 103
0 votes
0 answers
18 views

Why doesn't loss decrease with each epoch (for IMDB data vs Rotten Tomatoes data)

I am following the Google tutorial on ML for text classification I made this Google Colab notebook which you should be able to run from start to finish to see the issue. When the code trains a ...
Nate Anderson's user avatar
0 votes
0 answers
56 views

Object detection on largest number of classes

Does anyone know any pretrained object detection models to run with python with highest number of objects to be recognised? Yolo finds 80 objects, it is good if I can find a larger number. It would be ...
Jean's user avatar
  • 37
1 vote
1 answer
48 views

Dimension of the output of a convolution

In the image you can see the input and output dimensions in the second layer of a CNN. If the input of the convolution is 32 arrays of size 14x14 and we apply 64 kernels to it, shouldn't we get as ...
Catacroker's user avatar
0 votes
1 answer
242 views

Implementation of Graph Neural Network for Image Classification

I'm currently working on a project where I want to utilize Graph Neural Networks (GNNs) for image classification tasks. However, I'm facing difficulties in understanding how to implement GNNs ...
Rezuana Haque's user avatar
0 votes
1 answer
36 views

Better results when adding a dropout layer before a single layer classifier - counter intuitive result

I am working on an multi-class image classification problem (with 9 classes), i am using a pretrained DenseNet121 (on ImageNet), i'm using Keras. i am using densenet as a feature extractor, with a ...
user062's user avatar
0 votes
0 answers
22 views

Tips regarding using a CNN to teach a model car (JetRacer) to park

I'm using a model car which can be remotely controlled and which has a front facing camera. My goal is to train a CNN which would be able to efficiently park this car in a simple environment (pictured ...
Jamess11's user avatar
0 votes
1 answer
156 views

Why apply min-max normalization to each individual mel spectrogram for a training set?

I am watching a tutorial on using mel spectrograms to classify the audio's genre via CNN. My question is why apply local min-max normalization to each individual mel spectrogram? What I mean by local ...
Hayden LaBrie's user avatar
0 votes
0 answers
26 views

How to backpropagate transposed convolution?

I'm currently learning Convolutional Neural Networks and am stuck on trying to figure out how to compute gradients in a layer that uses transposed convolution. Also, how do I calculate the gradients ...
Jakob's user avatar
  • 1
1 vote
0 answers
122 views

Where exactly in YOLO's architecture is the input image divided into a grid?

I am currently studying the YOLO algorithm for a project. What I'm not quite sure about is where exactly the input image is divided in an SxS grid. After my research on the paper, videos and websites ...
Jannes's user avatar
  • 11
0 votes
1 answer
23 views

Best practice labeling grouped anomalies for object detection

I would like to train object detection model (e.g. YOLO) for images that contain anomalies. The anomalies are essentially the holes in a surface of different sizes. How do I label correctly such ...
In777's user avatar
  • 3
0 votes
0 answers
13 views

Validation Loss not decreasing for RESNet model

I have been trying to train a Resnet model to classify Diabetic Retinopathy images into binary classes. The dataset consists of around 35k images. The val loss and accuracy does seem to behave weirdly ...
SarveshSC's user avatar
0 votes
1 answer
660 views

How to correctly measure the inference time and FLOPs of a model?

For some reason, I can’t find built-in solutions (not really?) in keras and tensorflow, while on the site https://keras.io/api/applications/ they provide Time (ms) per inference step (CPU), but for ...
Shadow_fiend's user avatar
1 vote
0 answers
22 views

How to implement CNN crop area as learnable parameter?

I'm currently implementing a 1D CNN to forecast a time series for an industrial process. Essentially, I give the model 30 time steps (1 time step = 1 minute) of input data captured from 7 different ...
AleksJ's user avatar
  • 41

1
2 3 4 5
28