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
15 views

random_pad_image color parameter [closed]

I need to perform some data augmentations on my dataset. In TensorFlow models preprocessor.proto I noticed this one, that can be useful in my case: ...
0
votes
0answers
13 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 ...
0
votes
0answers
29 views

Why are not results reproducible when a model is loaded with tf.keras.models.load_model? [closed]

This is how my training script looks like, only the important parts. ...
1
vote
1answer
18 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
14 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
9 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
votes
0answers
14 views

How to write tensorflow variables to text file in C++? [closed]

I want to know how to use tf.io.write_file function in C++ to log the value of tensorflow variable in text file. Since i am novice to C++ if someone can show me simple code to do the same. Also, i had ...
1
vote
0answers
13 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 ...
0
votes
0answers
29 views

Tensorflow Model Zoo Edit Layers [closed]

So far I successfully used a model from the object detection model zoo with "model_builder" and restored it to a checkpoint. But now I want to know if I can somehow modify single layers of ...
-1
votes
0answers
10 views

How to get output as “saliency map”/“heatmap” of a tenserflow CNN model in a webapp deployed in HEROKU using flask? [closed]

I can implement saliency map of image in notebook . But , how can i get the saliency map / heatmap as output along with predition of tuberculosis . I deployed the webapp in HEROKU using flask.
0
votes
0answers
19 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
6 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
24 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 (...
1
vote
0answers
35 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 ...
0
votes
0answers
16 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
52 views

Can the developers of the libraries like TensorFlow have access to my dataset when I develop the model on my PC?

When I train a model with my dataset on my PC using Tensorflow, Keras, scikit-learn, Pandas or NumPy, do the developers of these libraries can gain access to my dataset? (May be when I train the model,...
0
votes
1answer
35 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
24 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
25 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
10 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
19 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
13 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
8 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 ...
0
votes
0answers
36 views

What do RNN, LSTM, and GRU layers do in Tensorflow?

I have gone through some theoretical introductions of RNN and LSTM, which do not contain any code, and they describe in fair detail what the cells do, how they apply operations like forget, sigmoid, ...
0
votes
1answer
25 views

Validation accuracy very low with transfer learning

I am using MobileNetV3 from TF keras for doing transfer learning; I removed the last layer, added two dense layers, and trained for 20 epochs. How many dense layers should I add after the MobileNet ...
0
votes
0answers
19 views

Maximize delayed rewards

Given a Neural Network with a Dense(3) output and three actions: 'B' is [0, 0, 1] (= 1, for the sake of our example) 'N' is ...
0
votes
0answers
23 views

Document clustering from ordered pages list

I have a series of ordered pdf pages which own to different documents. Let me give you an example: Pages: 1 2 3 4 5 6 True Pages: 1 2 | 1 2 3 4 So I have like six ordered pages, two of which from ...
1
vote
0answers
17 views

Neural Network Regression Experiment Going Wrong

I've been trying to get a simple regression experiment going with a neural network and I would like some help interpreting what is going wrong. My goal is to see what level of regression accuracy I ...
0
votes
0answers
29 views

What is the relationship between buffer size and actor loss in DDPG?

Actor loss in the DDPG algorithm is: critic_value = critic_model([state_batch, action_batch]) actor_loss = -tf.math.reduce_mean(critic_value) As I was trying to ...
-1
votes
1answer
17 views

Projected Gradient Descent to separate two classes

I am implementing projected gradient descent. i am trying to create one adversarial perturbation that when applied to images from different classes, causes my classification error to drop. I believe ...
0
votes
2answers
53 views

What is the process working on Tensorflow model.fit()? [closed]

I created a binary image classification model. The dataset contains about 500K images in each class, with ratio = Train : Validation : Test = 7 : 2 : 1. Total images = 1M I split my dataset into 5 ...
1
vote
0answers
36 views

Doubts on how this Dimensions are handled (Tensorflow) and how mean and standard deviation are extracted [closed]

I'm following the introductory MIT Deep Learning course on Youtube and i've been stuck for a day now on this piece of code: ...
0
votes
2answers
131 views

Unet Overfitting for binary segmentation of fake images

I am working on a project where I am trying to detect and localize forgeries in images. I am using the CASIA v2 dataset and using Unet model for the task. I have the binary masks of all the images in ...
1
vote
0answers
28 views

Construction of GRUcell using Tensorflow to get the hidden states [closed]

I want to construct a GRU cell with one hidden layer but I want to get the hidden states at each time step. I want to train the GRU cell for let's say 10 times and at every step to get the hidden ...
0
votes
0answers
14 views

Understanding metrics, understanding my LSTM results

I'm trying to learn about forecasting time-series methods, my first approach to achieve it is using LSTM. Lets suppose I have my data well processed, and I have my data time-series correctly. In that ...
-1
votes
1answer
35 views

Exploration for softmax should be binary or continuous softmax?

Maybe it's silly to ask but for random exploration in an RL for choosing discrete action, that in the neural network last layer softmax will be used, what random samples should we provide? binary like ...
0
votes
0answers
16 views

Which is the Best Way to Create Training Sequences for LSTM-based Class Prediction on Time-series Data?

Let's say I have time-series data in the following way. I need to create training sequences of a fixed length as an input to my LSTM model on PyTorch. ...
0
votes
0answers
35 views

Why is the F-beta score not increasing while the validation loss fluctuates?

I'm trying to implement a multi-label image classification from a CT scan data set. The goal of the work is to find out which CT scan image has eleven of the most common fractures if it is fractured. ...
-1
votes
1answer
37 views

How to train my model using transfer learning on inception_v3 pre-trained model?

I am trying to train my model to classify 10 classes of hand gestures but I don't get why am I getting validation accuracy approx. double than training accuracy. My dataset is from kaggle: https://www....
1
vote
0answers
18 views

What's new in LaBSE v2?

I can't find what's new in LaBSE v2 (https://tfhub.dev/google/LaBSE/2). What are the main highlights of v2 versus v1? And how did you find out?
0
votes
0answers
18 views

Training labels: integers or vectors?

I'm trying to implement Deep Q Learning using Tensorflow. The input is a vectorized representation of the state, and the output is a vector whose length is the number of possible actions. I've already ...
0
votes
1answer
32 views

What's the difference between a 1d tensor and a 2d tensor with 1 dimension?

I'm doing a TensorFlow tutorial, where they convert an array of the numbers [1,2,3] to a tensor like this: ...
0
votes
0answers
20 views

Can I use binary numbers and plain floats in the same neural network input for reinforcement learning?

I'm modeling a system whose configuration can be represented by a binary array ([1,0,0,1] or [0,1,0,0], for example), and the agent can move on a 2D space (thus having 3 DOF), and the action the agent ...
1
vote
1answer
45 views

Number of parameters in Keras/Tensorflow Dense layers

I am a bit confused about how the number of parameters are calculated in Dense model for the Kera/Tensorflow. For example, in the figure below I thought that both the statements were the same, but I ...
0
votes
0answers
24 views

Are there any inverse RNN layers?

Given the model: Sequence([ GRU(200, input_shape=(None,100), return_sequences=False) ]) Which maps the space ...
2
votes
1answer
54 views

Is it possible to use an internal layer's outputs in a loss function?

For a network of the form: Input(10) Dense(200) Dense(100+10) Dense(20) Output() Those +10 outputs are what I want to add to ...
1
vote
0answers
28 views

Is a true RNN auto encoder possible with Keras/TF

I want to get some encodings for temporal data (with a highly varying number of timesteps). The dataset is of the format: ...
0
votes
0answers
15 views

Is it possible to use RGB image with decimal values when feeding training data to CNN?

I am working with four grayscale images of float32 data type to perform regression using Keras. Three images are stacked using np.dstack to form a RGB data-set. The ...
0
votes
1answer
55 views

What are possible ways to combat overfitting or improve the test accuracy in my case?

I have asked a question here, and one of the comments suggested that this is a case of severe overfitting. I made a neural network, which uses residual boosting (which is done via a KNN), and I am ...

1
2 3 4 5
8