Category "deep-learning"

How bert_en_uncased_preprocess was made? Such as by training a NN or manual coding?

I am new to deep learning and have come across BERT. I tried small_bert/bert_en_uncased_L-4_H-512_A-8 as a Tensorflow tutorial did, and the result was quite ama

How can I determine validation loss for faster RCNN (PyTorch)?

I followed this tutorial for object detection: https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html and their GitHub repository that contains th

Attribute Error on predicting the image 'DirectoryIterator' object has no attribute 'Filepath'

I am working on a CNN architecture with an image RGB dataset that belongs to two categories, i.e., crops and another one is grass. However, I am concerned about

Predict Image loose saturation compare to the original after training

I am trying super-resolution of RGB images. I have an input image and output image I run the model and when I predict the output the image loses saturation com

Trying to get output of each layer while predicting test image, however getting an error Input tensors to a Functional must come from `tf.keras.Input`

I am trying to do Image Recognition in Python with TensorFlow and Keras. Please look at my code in the link below which I provided as I was facing another issue

Tensorflow_io: ValueError: Cannot infer argument `num` from shape (None, None, None)

I am trying to read and decode tiff images in tensorflow. I am using tensrflow_io package as follows, I am getting this error that I cant figure out. import ten

fastai show_batch and show_results does nothing

I build a model on fastai v2.3.1. When I try to call functions show_batch and show_results it does not show anything. Here is the problematic code: from fastai.

Pytorch parallel functional calls for multiple locations in a tensor

Does anyone know if there is a function in PyTorch that allows you to call a particular function for all the locations in a tensor where a condition is satisfie

How can I resolve " InvalidArgumentError: Graph execution error: jpeg::Uncompress failed. Invalid JPEG data or crop window"?

Beginner here. I recently converted my images to grayscale using opencv. Then I used those images for training. When I was training, there was an error. "Invali

Why FLAIR does't recognize the entire location name of simple sentence?

I'm tying to to detect simple location with NER algorithm, and I'm getting semi-correct results: from flair.data import Sentence from flair.models import Sequ

Combination of two Neural Networks

I want to use an image segmentation program which use CNN and fuse it with another lane detection network. Is it possible to train these two networks separately

Tensorflow gpu - out of memory error, the kernel appears to have died

Here is my classification problem : Classify pathological images between 2 classes : "Cancer" and "Normal" Data sets contain respectively 150 000 and 300 000 im

Reinforcement Learning of Kniffel/Yahtzee

I set myself the challenge to develop a deep reinforcement learning algorithm to solve the game Kniffel/Yahtzee. I coded the game with Python and inserted it in

Differentiate apple stem, calyx and defect

I am trying to differentiate apple stem calyx and defects. I have developed a detector that detects these parts on apple. But so far everything that i have trie

Deeplabv3 validation loss is nan

I had around 360 images splitted %25 as validation data. I could train Deeplabv3 with those images without any issue. Later on I have added around 40 images wi

How to download an older version of PyTorch Geometric in Google Colab?

Question: How can I download an older version of PyTorch geometric in google colab? Context: I am trying to use/load a pytorch-geometric graph and am getting th

How to get the actual learning rate in PyTorch?

I'm trying to find the appropriate learning rate for my Neural Network using PyTorch. I've implemented the torch.optim.lr_scheduler.CyclicLR to get the learning

Model accuracy not improving in CNN for image classification

I am using ResNext architecture for classification. the training dataset contains approximately 31000 images distributed among 61 classes. And validation datase

How to configure the Keras Optimizer and Learning rate using config.yaml file?

I have defined few parameters in my config.yaml like as below. params: epochs: 10 batch_size: 128 num_classes: 10 loss_function: sparse_categorical_cros

Gradio - Pytorch MNIST Digit Recognizer

I watched the following video on YouTube https://www.youtube.com/watch?v=jx9iyQZhSwI where it was shown that it is possible to use Gradio and the learned model