Questions tagged [deep-learning]

Deep Learning is an area of machine learning whose goal is to learn complex functions using special neural network architectures that are "deep" (consist of many layers). This tag should be used for questions about implementation of deep learning architectures. General machine learning questions should be tagged "machine learning". Including a tag for the relevant software library (e.g., "keras", "tensorflow","pytorch","fast.ai" etc) is helpful.

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

want to use raspberry pi 4, for image segmentation

so lame give you a brief explanation for my personal project, i want to build a image segmentation model, and I want to deploy it in raspberry pi 4, I have no access to coral, so I want to detect some ...
abhishek chakraborty's user avatar
0 votes
0 answers
10 views

Jupyter session crashing when attempting to train network

I am attempting to create the LeNet neural network using PyTorch for a lab exercise and train it on the MNIST dataset using the GPU. I'm using a Jupyter notebook on my local machine. Training the ...
BorisOZ's user avatar
0 votes
0 answers
10 views

Building our own LLM

How to build our own Large Language Model. Is there ay online course which are available, which helps in building our own LLM. If I want to build my own LLM, How much time will I require to train the ...
MADHUMITHA S AI-DS's user avatar
-1 votes
0 answers
7 views

Anaconda is not working for FaceSwap project

I have downloaded the Micorosft Build tools 2022 for my faceswap project. After downloaded, when I opened the anaconda prompt, for installing insightface library then this error came: **"Unable ...
Ali Nawab Khan's user avatar
0 votes
0 answers
13 views

Calling model.fit on target array of columns vs array of rows

The two should be equivalent in terms of how they are fed into the model or one should be accepted and the other incompatible. A list of columns vs a list of rows. My model architecture takes 5 inputs ...
Governor's user avatar
  • 300
0 votes
0 answers
11 views

Trying EfficientNetV2 with CBAM

I am trying to build EfficientNetV2 model with CBAM (Convolutional Block Attention Module) by using Keras. I've implemented it myself, using this Github as a reference. Could you confirm that the ...
occ's user avatar
  • 1
1 vote
0 answers
26 views

Pytorch dataloader: data shape issue with custom COCO dataset for model finetuning

I have an object detection task for which I prepared images and annotations*. The objective to is fine-tune an existing model with Pytorch. Images (PNGs) are stored in the same folder where the COCO ...
alelom's user avatar
  • 2,172
0 votes
0 answers
7 views

CNN performance results are different in Debug mode and Release mode

I ran the following code against the appa face dataset (https://chalearnlap.cvc.uab.cat/dataset/26/description/) https://github.com/yu4u/age-gender-estimation/blob/master/age_estimation/train.py ...
IKAHN's user avatar
  • 11
-2 votes
0 answers
23 views

TensorFlow does not detect my GTX 1650. How do I fix it?

I'm trying to use my GTX 1650 for deep learning. But the tensorflow module doesnot list my gpu. I've installed the CUDA drivers version:11.5 CdNN version: 8.3 How do I make my gpu detectable. Please ...
WinterSolstice's user avatar
0 votes
0 answers
4 views

RLlib RecurrentNetwork and Trajectory View API

I've been reading over the AttentionNet file for both the GTrXL and AttentionNetWrapper implementations located at ray/rllib/models/torch/attention_net.py at master · ray-project/ray (github.com). A ...
user2793618's user avatar
-3 votes
0 answers
15 views

Is the first model get trained? Or How to train 2 models together?

The output of the model A works as a weight factor in the loss function of model B. The input of model is unlabeled data. On this condition, when start training, will model A's parameters get updated ...
MeatLover's user avatar
0 votes
0 answers
7 views

Transformer Sequntial Decoder

I am working now to learn on how to work transformers, the below code is in pytorch API. during the code review I come across some uncertainities. enter image description here Can anyone explain to me ...
Amir's user avatar
  • 1
0 votes
0 answers
24 views

Scikeras ValueError: Input 0 of layer "conv2d_30" is incompatible with the layer: expected min_ndim=4, found ndim=2. Full shape received: (None, 99)

I am working on a CNN using the new scikeras KerasRegressor wrapper and am getting a ValueError for my input shape but not in the first layer I don't think. My input shape is (1, None, 99, 1), so I'm ...
bree_geophys's user avatar
-1 votes
0 answers
12 views

Federated learning FedAvg and Fedper

Somebody wrote me a pythone code for federated learning both for Fedper and Fedavg but i dont understand the difference or maybe it is incorrect. Can anybody help me to find that it is correct or not? ...
Ariaeimehr's user avatar
0 votes
0 answers
13 views

i want a costum layer in keras that rearrange the input tensor of the layer

i want a costum layer in keras that rearrange the input tensor of the layer: for example if the input data to be: input_data = np.array([ [1, 2, 3, 4, 5, 6], [7, 8, 9, 10, 11, 12], [13, ...
Hassan Zohrevand's user avatar
0 votes
0 answers
12 views

Detectron2: Diverged Training. Predicted boxes or scores contain Inf/NaN

I am training a custom Document Analysis model. Approach that I have used is by fine-tuning PublayNet FastRCNN model on my custom documents, which were manually annotated. Following is the code ...
Devanshi Sukhija's user avatar
-1 votes
0 answers
20 views

Changing model in face-recognition and face-registration

I have a python project about face-recognition, actually i am using it from Here, but the main problem is that author uses "facenet-trtserver" and "face-reidentification-retail-0095&...
aestetor's user avatar
-1 votes
0 answers
21 views

2D spatial embedding for navigation

I'm trying use DNN for beacon navigation but accuracy is poorly so I want use embedding contains locations of beacons (longitude and latitude) but I don't know how I should make such embedding. Below ...
I'mStuckOnLine911's user avatar
-2 votes
0 answers
21 views

Why am I getting type error saying int object is not subscriptable

Code: def __getitem__(self, index): image_path = self.image_file[index] label_path = self.label_file[index] # Read images and labels image = cv2.imread(image_path) ...
sccomp's user avatar
  • 1
-1 votes
0 answers
7 views

APIErrorException: (InvalidImageSize)

I am working on face recognition using azure face Api. I have two sets of data. students data(contain one images of per student I have 100 students total) cctv frames data(contains photos of cctv ...
Vague one's user avatar
0 votes
0 answers
12 views

DeepAR+ in google colab

I'm working on a time series forecasting project in Google Colab, and I originally planned to use the DeepAR+ model from GluonTS. However, I've noticed that the current version of GluonTS does not ...
Yuvi's user avatar
  • 1
0 votes
0 answers
15 views

What is the LLaMA gate projection layer for?

Looking through the HuggingFace implementation of LLaMA, I see something called a 'gate projection layer' which seems to simply elementwise multiply its (post-activation function) output with the ...
d0rb's user avatar
  • 1
-2 votes
0 answers
26 views

Enhancing Semantic Image Segmentation Accuracy in 25cm Satellite Imagery [closed]

I'm attempting to perform semantic image segmentation on high-resolution (25cm) satellite imagery for land cover classification. I've already made an attempt using a pretrained U-Net model with a ...
Adekunle Adeoya's user avatar
-1 votes
0 answers
10 views

Batch Norm FORCED to run in parrellel? [closed]

The batch norm runs across an entire batch. It uses the mean and standard deviation of the batch to normalize each individual layer. So if you want to get the mean and standard deviation of the last ...
altywalty's user avatar
-1 votes
0 answers
27 views

Can someone help me to sort out the error in this part of code? I am very new to ML and TensorFlow

--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[36], line 1 ----> 1 history = model....
DarthMalak2003's user avatar
-2 votes
0 answers
21 views

Yolov8 result isn't show normal [closed]

here is my code and result import ultralytics from ultralytics import YOLO import multiprocessing import time if name == "main": multiprocessing.freeze_support() model = YOLO('weights/...
obsession.oo's user avatar
-2 votes
0 answers
11 views

How anchor box is calculated and defined in object detection task [closed]

Guyss.. I m not getting the idea of anchor boxes in object detection task. I have an image size of 192x192x3 And I m training my model for hand palm detection (same as mediapipe hand landmarks ...
Wazz's user avatar
  • 1
-1 votes
0 answers
10 views

Testing accuracy is slightly higher than training accuracy (applied with data augmentation & cross validation)

I'm currently constructing a CNN model for Alzheimer's disease classification based on MRI images from Kaggle. My dataset consists of 4 classes which include 896 images of mild demented, 3200 images ...
Firzana Eiwany Mashi's user avatar
-1 votes
1 answer
28 views

How to load 3D MRI images into deep learning images?

I am working on prostate cancer classification task using MRI images, in my case, each patient has both ADC and DWI images. I have preprocessed all ADC and DWI images, and labeled them, the label is ...
Shazman's user avatar
-1 votes
0 answers
11 views

Does cutting of the top layer of the network lead to over-fitting?

I read that over-fitting is a major hurdle for neural networks including tesseract. But, I don't have a deeper understanding of neural networks. I have been trying to add a few new characters to the ...
Dellu's user avatar
  • 153
-3 votes
0 answers
12 views

how can we use SVM algorithms with GPU trainings as there are several algorithms which are used with CUDA but not SVM? [closed]

SVM(Support Vector Machine) compatibility with CUDA Devices we tried to load our multi-label classification dataset with NVIDIA GPUs but they are not supported and we were unable to train our model. ...
Rajeev Mishra's user avatar
-1 votes
0 answers
11 views

torchvision - how to use keypoints_scores in keypoint RCNN

The values of keypoints_scores is not between 0-1, and also negative value does not mean not good sometimes, so I wonder how should I use keypoints_scores for the propability. I need to use ...
eric liu's user avatar
-2 votes
0 answers
16 views

volatile gpu-util is always zero during training

I just started learning about computer vision research based on deep learning methods not long. Running a 3D reconstruction model called DISN on remote server. Hoping to accelerate training by using ...
Gwyn's user avatar
  • 1
0 votes
0 answers
17 views

How to print Grounding DINO model summary

I'm trying to obtain the model summary of Grounding DINO. I tried to use the torch-summary library to do this, but I'm facing problems with specifying the correct input size, thing that is mandatory ...
John's user avatar
  • 1
-3 votes
0 answers
15 views

How many picture for AI training

I try to make a caries detection AI model. How many picture in minimum for train it ? I use tensorflow for create model. numbering of picture for train object detection.there's any reference or ...
Poolpruek Soparat's user avatar
0 votes
0 answers
23 views

model.fit() stopping halfway on 1 epoch using tensorflow-directml. What to do?

Currently using tensorflow-directml as I am training a model on AMD (RX 580). The problem is, upon model.fit() it seems to be stuck at epoch 1 with no progress. Here's my code and error: with ...
user21525821's user avatar
-1 votes
0 answers
11 views

Questions about YOLOv4 lawn detection [closed]

I'm working on the health classification of turf, and I've encountered a major issue. The model I've trained correctly identifies normal turf only 20%, while it identifies unhealthy turf 40%. I have ...
aleajc0812's user avatar
0 votes
0 answers
18 views

Yolo nas prediction model: unexpected keyword argument 'save'

i am learning in Yolo nas model for object detection, so in Yolov8 i was able to save the predictions coordinates as txt but using this yolov8.predict(url, save = True, conf=0.70, save_txt = True) ...
hamza masri's user avatar
0 votes
0 answers
20 views

"I've set different dimensions for the image size and the input shape in tf.keras.Input, but it still works during training."

I have a question that has arisen during an experiment in model training, and I would like to ask it. This is related to the difference between the Keras dataset image size and the model's input layer ...
jwjeong's user avatar
-2 votes
0 answers
15 views

How can you get the algorithm for layer normalization backpropagation? [closed]

I can't understand how the backpropagation algorithm for layer normalization works. Can someone explain it to me like I'm dumb? There is not that much stuff online and most of it is behind a lot of ...
altywalty's user avatar
0 votes
0 answers
18 views

How do I make a Tensorflow RNN accept a single timestep during prediction?

I am a researcher attempting to develop a hybrid CNN-RNN network to generate a sequence of outputs that approximates a multiphysics simulation. I have already trained the CNN portion of the network (...
gutza1's user avatar
  • 1
0 votes
0 answers
14 views

Tensorflow Probability CDF lower than it's PDF value

I've been testing Tensorflow Probability on some use cases and have some error. Working backwards, I found that, at least in the Normal distribution, you can see that while the PDF value for 0.9568... ...
Ignacio Ojeda Aguirre's user avatar
-1 votes
0 answers
11 views

How to run shap.force_plot correctly on deep time series model

I have a deep (torch) time-series classification model which get inputs: (batch, 90, 4) - 90 samples of time, each sample with 4 features (array with the size of the batch) for example: (64, 90, 4), (...
user3668129's user avatar
  • 4,326
0 votes
0 answers
17 views

Divide dataset classes for ML binary classification

data_dir = '/kaggle/input/' my_data_dir = f'{data_dir}/surface-crack-detection/surface-crack-detection/' positive_dir = my_data_dir + 'Positive/' negative_dir = my_data_dir + 'Negative/' # ...
Lorentz1234's user avatar
0 votes
0 answers
9 views

Kernel crashes during training using tensorflow-directml

Currently training on Windows with RX 580 AMD so I had to use tensorflow-directml. It was working able train a very lightweight model but when I used a little bit complex model, kernel keeps on ...
user21525821's user avatar
-1 votes
1 answer
25 views

What is the actual order of execution when Top-K, Top-P and Temperature are used together for NLP decoding?

Let's say I use: sample_outputs = model.generate(**model_inputs,max_new_tokens=40,do_sample=True, top_k=3,top_p=0.51, temperature=0.6, num_return_sequences=3,) What is the order of execution in ...
Deshwal's user avatar
  • 3,464
-1 votes
0 answers
11 views

I am getting error while running the image classification using CNN model

history = model.fit( train_generator, epochs=5, batch_size=64, validation_data=test_generator, ) Epoch 1/5 /usr/local/lib/python3.10/dist-packages/tensorflow/python/util/dispatch.py:1176: ...
Debendra Bakhati's user avatar
0 votes
0 answers
8 views

Matlab RCNN inputs without tables

I am trying to use the trainRcnnObjectDetector on R2020b (I have all toolboxes) and the example input is a table of image locations (allready created and loaded as a .mat). My images are frames in an ...
Dan's user avatar
  • 1
-2 votes
0 answers
12 views

Idea to have auto selection of number of neurons in each hidden layer with embedding R2 in the model behind the loss optimizer for each batch ✨

I will describe a simple way to have auto selection of number of neurons in each hidden layer, but I can't implement it. let's focused on one neuron and its input neurons. As you now each neuron make ...
Ahmed El-Taher's user avatar
0 votes
0 answers
14 views

Implementation of CPU multicore parallel processing makes the code slower - PyTorch ANN

I am trying to speed up the training computations. Since it uses an Evolution Strategies optimizer, it takes longer for the ANN to learn. I wanted to try and implement multicore parallel processing, ...
nico's user avatar
  • 11

1
2 3 4 5
550