Questions tagged [tensorflow]

For questions related to Google's open-source library for machine learning and machine intelligence. However, note that programming questions are off-topic here.

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

In general, when are the normal, uniform and zero initializers used?

I came across a Conv2D layer in a fully convolutional network, which used a kernel_initializer='zero' for regression. Why is a ...
0
votes
0answers
17 views

Exception encountered when calling layer "attention_weight" (type Attention) [closed]

I am new to using attention. My input shape is per sample is of shape (6,128). I can't get my head around what the solution might be. ...
0
votes
0answers
16 views

Object detection: when there's only 1 object in each image

Good day. I have a custom dataset for object detection, which has imbalance that each image has only one object annotation. I trained the object detection model(Efficientdet-dx) on TensorFlow object ...
0
votes
0answers
56 views

Why is val accuracy 100% within 2 epochs and incorrectly predicting new images? (1,000 images per class when training)

My CNN tensorflow model reports 100% validation accuracy within 2 epochs. But it incorrectly predicts on single new images. (It is multiclass problem. I have 3 classes). How to resolve this? Can you ...
0
votes
0answers
13 views

tfp.Distributions.Categorical.sample() is picking the same action everytime after certain iterations

I have written a code for an RL agent such that at each state the model calculates the probabilities of all possible actions and samples one action randomly to proceed further. To acheive this, I have ...
0
votes
0answers
18 views

How can I initialize KerasTuner with a specific setting? [closed]

My situation is like this: I have started ten Keras-Tuner jobs in a machine 'A' that doesn't have a GPU and has a lesser number of CPU cores. These jobs are still running. How my P.I. tells me to ...
0
votes
0answers
26 views

Why am I getting a very small number as CNN prediction?

I created a CNN using Tensorflow to identify pneumonia and sometimes it returns a very small number as a prediction. why is this happening? I have attached the link for the dataset Here I how I ...
2
votes
0answers
35 views

What parameters or hyper-parameters of my model for time-series should I change to improve the MAE?

The following time series exercise is about writing the best possible model, minimizing the MAE. Helper functions normalize_series, ...
0
votes
0answers
33 views

How to fine-tune GPT-J with small dataset

I have followed this guide as closely as possible: https://github.com/kingoflolz/mesh-transformer-jax I'm trying to fine-tune GPT-J with a small dataset of ~500 lines: ...
0
votes
0answers
18 views

Training the Model properly

I am relatively new to Machine Learning. I want to build a good stock price prediction neural network model and I am using features that depend on the price as well as features that do not depend on ...
1
vote
0answers
53 views

Is the graph considered as overfit?

I have a training dataset of 2000 images and 500 images for validation. I have executed 50 epochs, however I realized that my graph seems to be different as my accuracy is smaller than my loss. I am ...
2
votes
0answers
39 views

Hand Landmark Detector Not Converging

I'm currently trying to train a custom model with TensorFlow to detect 17 landmarks/keypoints on each of 2 hands shown in an image (fingertips, first knuckles, bottom knuckles, wrist, and palm), for ...
0
votes
0answers
16 views

Which model should I use?

I want to create something like a recommendation system based on tensorflow/keras. Initially the system will have some arbitrary (random or user-chosen) inputs and generate some image based on those ...
0
votes
0answers
8 views

Categorical Location based Time Series data Prediction using LSTMs

I have some time series data with ActivityType as location shared below. Each CaseID has 6 unique values with different ...
1
vote
0answers
25 views

Training a neural network using several data sources with quality flags

I have been searching for a specific problem in training a NN and hope someone is able and willing to help as I cannot find a solution. The problems is that I have a spatial data set with 3 sources of ...
1
vote
1answer
45 views

Keras CNN: Multi Label Classification of Images - Model Evaluation

I am rather new to deep learning and got some questions on performing a multi-label image classification task with keras convolutional neural networks. Those are mainly referring to evaluating keras ...
0
votes
0answers
24 views

Data Augmentation for Object Detection - Polygon Region Shape

I'm looking to run a Mask RCNN code on my dataset of about 2700 images. The images are too large and I would like to resize them, and I would also like to add some shear, scale and zoom augmentations. ...
1
vote
0answers
26 views

Multiple GRU layers to improve a text generation

I am using the model in this colab https://colab.research.google.com/github/tensorflow/text/blob/master/docs/tutorials/text_generation.ipynb#scrollTo=AM2Uma_-yVIq for Shakespeare like text generation. ...
1
vote
1answer
29 views

How to handle random order of inputs and get same output?

I am a beginner with DL. I did some tutorials and I know the basics of TensorFlow. But I have a problem understanding how to construct more advanced NNs. Let's say I have 6 inputs and a list of 500 ...
0
votes
1answer
81 views

What is better to use: early stopping, model checkpoint or both?

I want to get a model which works best, what should I go for while training the model, ModelCheckpoint, EarlyStopping, or both?
1
vote
1answer
77 views

Tensorflow object detection model total loss starts out good, but suddenly explodes up to high loss numbers

I'm training a Tensorflow object detection model with approx. 7500 images of two classes, which contains approx. 10,000 classes per class. I'm using Tensorflow 2.6.0, in case that is relavent. I am ...
0
votes
1answer
37 views

How to handle an unbalanced dataset when training object detection algorithms?

I am training an object detection model, and I have some very highly unbalanced data annotations. I have almost 11,000 images, all with dimensions of 1024 $\times$ 1024. Within those images I have the ...
0
votes
1answer
23 views

Do LSTM in tensorflow work sequentially or in parallel

I have a basic understanding how a cell and a layer of an LSTM works. However, I get confused by what "number of units" (as termed in tensorflow) exactly means. A unit is, as far as I ...
0
votes
1answer
111 views

Transformer model is very slow and doesn't predict well

I created my first transformer model, after having worked so far with LSTMs. I created it for multivariate time series predictions - I have 10 different meteorological features (temperature, humidity, ...
0
votes
0answers
52 views

How to label images for image segmentation (with TensorFlow)?

I am following this tutorial on image segmentation on the TensorFlow website. The website uses its own labeled images for the tutorial, so the images have data that says which pixels are a part of the ...
0
votes
0answers
14 views

Tensorflow Probability Implementation of Automatic Differentiation Variational Inference with Mixtures

In this paper, the authors suggest using the following loss instead of the traditional ELBO in order to train what basically is a Variational Autoencoder with a Gaussian Mixture Model instead of a ...
0
votes
0answers
25 views

Does Adam remember gradient momentum from previous fits, or this only works for batches?

I am training my model in loop using tensorflow and keras, iterating over data etc. Simple example ...
1
vote
0answers
33 views

What would be the advantage of making channel dimension first in TensorFlow Keras implementation?

I was reproducing the findings of a research article in which I discovered that they had switched the Channel dimension from last to first. To clarify this concept, I went through A Gentle ...
0
votes
0answers
16 views

Graph neural network - what level (node or link or graph) prediction should be used for my problem?

I posted this on cross-validated but did not get a response. Trying my luck here. Sorry if this is not recommended. I have an undirected graph with nodes separated within a specified distance, say d, ...
0
votes
0answers
15 views

Training a sequential model that can only evaluate after several hundred cycles

I'm attempting to build a neural network to play the card game, Lost Cities. A brief overview of the game: The game involves two players taking turns to play cards on expeditions. Expeditions incur a ...
2
votes
1answer
46 views

How is this statement from a TensorFlow implementation of a certain KL-divergence formula related to the corresponding formula?

I am trying to understand a certain KL-divergence formula (which can be found on page 6 of the paper Evidential Deep Learning to Quantify Classification Uncertainty) and found a TensorFlow ...
0
votes
0answers
20 views

How to improve detection of wide objects?

I am working on a project where part of it is to detect PV module arrays, I trained few object detection models through TensorFlow Object Detection API and the problem I got is that the trained models ...
2
votes
0answers
34 views

Positional Encoding in Transformer on multi-variate time series data hurts performance

I set up a transformer model that embeds positional encodings in the encoder. The data is multi-variate time series-based data. As I just experiment with the positional encoding portion of the code I ...
1
vote
1answer
30 views

Are there any stats available on the usage of libraries by deep learning researchers?

I know three Python libraries that are popular in deep learning research community: Keras, PyTorch, Tensorflow. I don't know much about Theano. This question is not about the efficiency, flexibility ...
0
votes
0answers
17 views

Prune Neural Networks layers for f% sparsity - TensorFlow2

I am using TensorFlow 2.5 and Python3.8 where I have a simple TF2 CNN having one conv layer and an output layer for binary classification as follows: ...
0
votes
0answers
11 views

Save the Embeddings Model from a Complete Triplet Loss Network

I am working on a Siamese Neural Network with custom Triplet Loss function. As far as I learned from the documentations, we will train a complete network but we want to save only the CNN that is used ...
1
vote
0answers
22 views

Would the reward normalization be wrong in early episodes?

It's confusing me that how can we normalize the reward without actually knowing the true mean and variance of the reward distribution, specifically, at the early steps and episodes. This may cause ...
1
vote
0answers
32 views

Does Keras or Tensorflow calculate backpropagation?

I am using tensorflow 2.1.0. Does Keras or Tensorflow calculate backpropagation? Where can I find the code for backpropagation in Keras and Tensorflow? Thanks, Jianqiao Huang
0
votes
0answers
7 views

Part of Speech and word embedding on a mobile phone1

I have a model on Spacy that does part of speech recognition and then makes a smart average of words for each part of speech: subject, verb, object... I would like to deploy it in a mobile app that ...
0
votes
1answer
90 views

Is it possible that the fine-tuned pre-trained model performs worse than the original pre-trained model?

I have downloaded a pre-trained EfficientDet D2 model (Tensorflow 2.0) and trained it on some data (about 20000 images with 20 classes). I set the number of steps to 25000 and batch size to 3 (...
2
votes
0answers
53 views

What causes high differences in neural network accuracy each run?

I trained a CNN using Keras in R to multi-dimensional image data for image classification of five classes. I realized that each run (I retrained the network on the same data for ten times), although I ...
1
vote
0answers
17 views

How to manually optimize Neural Networks the most systematical way?

Do you have any ideas or guidance on how to do manual neural network optimization in the most systematic way? Especially when models train longer and the effects of hyperparameter fitting are very ...
0
votes
1answer
50 views

Confusion about faster RCNN neither object nor background label

I am trying to construct a faster RCNN from scratch using KERAS. I am generating the tensor which contains whether anchor at each location corresponds to object or background or neither for training ...
1
vote
0answers
26 views

How to deal with images that do not contain any object of interest?

I'm currently working on an iOS App where I want to detect if there is a table, chair or bench in the current camera input. My idea was to take the MobileNetV2 model and get it to classify these three ...
0
votes
0answers
28 views

How to change number of trained layers in object detection TensorFlow models?

Training custom object detection models with TensorFlow usually means a transfer learning of pre-trained models and, if I understand it correctly, it means only training the few last layers, with ...
0
votes
0answers
11 views

Are supervised learning object recognition models appropriate for the challenge of recognizing dynamically generated terrain features in a game?

I decided to practice applying object recognition with TensorFlow for an interesting application this weekend. The application I chose was to recognize enemies in a game world, and as more of a ...
0
votes
0answers
25 views

What is "fill" algorithm used for image resizing and cropping?

I was going through this documentation directed by Codelab-Developer-Google. In order to resize an image, the notebook is using the "fill" algorithm. See the below code ...
0
votes
0answers
17 views

How to use Tensorflow Recommenders' Retrieval task with Keras data generators

I've recently started working with the package to build recommender systems, and so far, I've successfully built a Ranking task that takes the inputs from a Keras Data Generator. However, I could not ...
0
votes
0answers
15 views

Using GAN to create multiple images as per multiple input layers

How to use GAN to create multiple images like https://opensea.io/collection/boredapeyachtclub here, each attribute is variable like fur, BG, Expression, Sunglasses, etc. Is there any GAN software to ...

1
2 3 4 5
8