Questions tagged [tensorflow]

For questions related to Google's open source library for machine learning and machine intelligence.

Filter by
Sorted by
Tagged with
1
vote
1answer
45 views

Why isn't my implementation of DQN using TensorFlow on the FrozenWorld environment working?

I am trying to test DQN on FrozenWorld environment in gym using TensorFlow 2.x. The update rule is (off policy) $$Q(s,a) \leftarrow Q(s,a)+\alpha (r+\gamma~ max_{a'}Q(s',a')-Q(s,a))$$ I am using an ...
1
vote
0answers
7 views

Standardize images using ImageDataGenerator in keras

I was trying to normalize my input data images for feeding to my convolutional neural network and wanted to use standardize my input data. I referred to this article: https://stackoverflow.com/...
2
votes
0answers
24 views

Can we use a neural network that is trained using Reinforcement Learning for dynamic game level difficulty designing in realtime?

I am a newbie to Machine Learning and AI. As per my understanding, with the use of reinforcement learning (reward/punishment environment), we can train a neural network to play a game. I would like ...
2
votes
0answers
22 views

How to detect vanishing gradients in tensorboard?

I have two "sub-questions" 1) How can I detect vanishing or exploding gradients with Tensorboard, given the fact that currently write_grads=True is deprecated in the Tensorboard callback as per "un-...
1
vote
0answers
11 views

Simple sequential model with LSTM which doesn't converge

I'm actually trying to create a sequential neural network in order to translate a "human" sentence in a "machine" sentence understandable by an algorithm. Like It didn't work, I've try to create a NN ...
1
vote
0answers
23 views

Are there any tools I can use to debug a Keras LSTM model during prediction?

I want to be able to debug my Keras LSTM model. For example, I want to be able to check the values of the input/output gates, cell states and hidden states at every time-step during prediction. Are ...
0
votes
0answers
16 views

How can I use Keras on a mobile app? [closed]

I have a trained network for machine translation. I want to use Keras on mobile and only load the weights to the app. I found keras.js, but I don't know how to use it for a mobile app. I use ionic4 ...
0
votes
1answer
21 views

What is the difference between TensorFlow's callbacks and early stopping?

What is the difference between TensorFlow's callbacks and early stopping?
0
votes
0answers
9 views

Conv-2 CNN architecture - CIFAR-10

I have a CNN architecture for CIFAR-10 dataset which is as follows: Convolutions: 64, 64, pool Fully Connected Layers: 256, 256, 10 Batch size: 60 Optimizer: ...
0
votes
0answers
6 views

How does the BERT model (in Tensorflow or Paddle-paddle frameworks) relate to nodes of the underlying neural-net that's being trained?

The BERT model in frameworks like TensorFlow/Paddle-paddle shows various kinds of computation nodes (like subtract, accumulate, add, mult etc) in a graph like form in 12 layers. But this graph doesn'...
0
votes
1answer
20 views

Indexing tensors in custom loss function with Keras

I'm using a custom loss function in Keras. This is the function: ...
0
votes
0answers
14 views

Tensorflow neural network - inherent overfitting in certain X and Y distributions?

Really open ended question here... I'm working on a classifier model that is used to predict whether some amount is > x, ...
0
votes
0answers
17 views

Keras fit generator - ValueError: Failed to find data adapter that can handle input

I'm trying to fit my deep learning model with a custom generator. When i fit the model, it shows me this error: I tried to find similar questions, but all the answers were about converting lists to ...
1
vote
1answer
25 views

I need to select the image from a predefined dataset that are the closest to the input, is this possible or do I even need to use ML/AI?

So as the title states, I have a set of images and I want to process input images and need to select the image that "looks" the most like the input image. I know I've seen something similar where the ...
2
votes
0answers
17 views

How do I make my LSTM model more sensitive to changes in the sequence?

I have a many to one LSTM model for multiclass classification. For reference, this is the architecture of the model ...
4
votes
1answer
76 views

Is there a reason to use TensorFlow over PyTorch for research purposes?

I've been using PyTorch to do research for a while and it seems to be quite easy to implement new things with. Also, it is easy to learn and I didn't have any problem with following other researchers ...
2
votes
0answers
39 views

External GPU for Mac

I'd like to buy an eGPU for my MaxBook Pro to use for simple deep learning tasks. My setup is: ...
0
votes
0answers
17 views

Tensorflow throwing out of bounds error with keras tokenizer

I am new to ML and tensorflow and trying to train and use a standard text generation model. When I go to train the model I get this error: ...
0
votes
0answers
17 views

Padding all non-square input image matrices dynamically in a training set

I have input images of dimensions (16,8) which obviously aren't square matrices. I am training this dataset on a CNN. I want to pad zeroes using tf.pad() so that ...
1
vote
0answers
13 views

Error when using tensorflow HMC to marginalise GPR hyperparameters

I originally posted on SO (original post) but was suggested to post here. I would like to use tensorflow (version 2) to use gaussian process regression to fit some data and I found the google colab ...
2
votes
0answers
20 views

What is the equivalent PyTorch version of tensorflow lite

Update Checked the PyTorch Mobile which is designed to Android and iOS. Although according to the document, it says it can build for ARM CPUs, but there isn't any documentation mention about how to ...
1
vote
0answers
15 views

How to handle set-like size agnostic input format

Let's set up some hypothetical simplified scenario: Each instance $i$ of my imaginary dataset $D=\{i_{1}, \ldots, i_{MAX}\}$ has different number $k_{i}$ of $n$-dimensional vectors as input into my ...
0
votes
0answers
11 views

How to pass observation from CartPole-v0 to neural network using tensorflow

I am trying to learn about RL by implementing DQN with tensorflow. However, I am really stuck with tensorflow.. I just don't understand it. I think I have found the core of what I understand - I dont ...
1
vote
0answers
14 views

Is there a way to use RNN (in tensorflow) to do something like a batch Kalman with the weight dynamics specified in the loss?

Or would you simply do this as a time series of models. Basically I think you can think of time series of weights as the hidden states and the dynamics driving the weight time series as the RNN ...
29
votes
6answers
9k views

Why do CNN's sometimes make highly confident mistakes, and how can one combat this problem?

I trained a simple CNN on the MNIST database of handwritten digits to 99% accuracy. I'm feeding in a bunch of handwritten digits, and non-digits from a document. I want the CNN to report errors, so I ...
0
votes
0answers
26 views

TensorFlow fit() and GradientTape - number of epochs are different

if I define the architecture of a neural network using only dense fully connected layers and train them such that there are two models which are trained using model.fit() and GradientTape. Both the ...
2
votes
1answer
107 views

Tensorflow-gpu cannot use Nvidia GPU with CUDA

I'm working on a Python Keras/Tensorflow image recognition script (on Ubuntu 18.04) which works ok, but it will only train on CPU (which is slow) and I want to be using my GPU (i have a Nvidia Geforce ...
1
vote
0answers
15 views

How to build sort objects model using Deep Learning

How to build sort objects model using Deep Learning if i have some objects in an image enter image description here if i give him an similar image he sort the detected order according to Learning ...
2
votes
2answers
48 views

Why does the bias need to be a vector in a neural network?

I am learning to use tensorflow.js. I am also using the tfvis library to print information about the neural net to the web browser. When I create a create a dense neural net with a layer with 5 ...
0
votes
0answers
22 views

How to use Before / After images to train a model

I am trying to create a model that can clean pictures of noise, blur, high luminosity etc, but I do not know how to do that. I have tried to search for it a lot, and I couldn't find anything that ...
2
votes
0answers
24 views

How can I train a Deep Learning model using degraded photos and their clean version to correct photos

I have 5000 degraded pictures ( pixelated, blurry, too much luminosity ... ) and their clean versions, and I would like to train a model so that it can predict how to correct future pictures. I've ...
2
votes
1answer
74 views

What are the differences between TensorFlow and PyTorch?

What are the differences between TensorFlow and PyTorch, both in terms of performance and functionality?
1
vote
1answer
35 views

Multiple GPUs one expensive GPU, which gpu to buy for real time processing (not training)

I am trying to decide what GPU or GPUs to buy to run tf-pose pose detection and yolo3 object detection on several cameras. I need to keep an acceptable frame rate too. what kind of GPU configuration ...
4
votes
2answers
471 views

Effect of batch size and number of GPUs on model accuracy

I have a data set which was split using a fixed random seed and I am going to use 80% of data for training and rest on validation. Here are my GPU and batch size configurations use ...
2
votes
3answers
397 views

How to reproduce neural network training with keras

I want to see the effects of changing some training parameters (batch size, learning rate, optimizer...) to the accuracy obtained. The problem is that with the same parameters I get significantlly ...
4
votes
1answer
56 views

Why do we average gradients and not loss in distributed training?

I'm running some distributed trainings in Tensorflow with Horovod. It runs training separately on multiple workers, each of which uses the same weights and does forward pass on unique data. Computed ...
0
votes
0answers
26 views

Reasoning behind $Zero$ validation accuracy in the following ResNet50 model for classification

I have written this code to classify Cats and dogs using Resnet50. Actually while studying I came to the conclusion that Transfer learning gives very good accuracy for deep learning models, but I ...
1
vote
0answers
24 views

Can anyone explain the pixelwise accuracy metric used in this paper? Also a question to the KL Divergence Loss

So I am making a project based on this paper: https://arxiv.org/ftp/arxiv/papers/1901/1901.07761.pdf In this paper, a U-Net is used to generate optimized mechanical structures. I am trying to ...
2
votes
1answer
40 views

Why does the denoising autoencoder always returns the same output?

I am trying to implement a denoising autoencoder (DAE) to remove noise from 1024-point FFT spectra. I am using two types of spectra: (1) that contain a distinctive high amplitude spectral peak and (2) ...
2
votes
0answers
21 views

Can't figure out what's going wrong with my dataset construction for multivariate regression

TL;DR: I can't figure out why my neural network wont give me a sensible output. I assume it's something to do with how I'm presenting the input data to it but I have no idea how to fix it. Background:...
0
votes
2answers
76 views

Tensorflow Lite model vs Tensorflow Model

I have explored edge computation for AI and I came across multiple library or framework which can help to convert model into lite format which is suitable for edge devices. ...
2
votes
0answers
21 views

How are batch statistics computed in Recurrent Batch Normalization?

I'm implementing recurrent BN per this paper in Keras, but looking at it and those citing it, a detail remains unclear to me: how are batch statistics computed? Authors omit explicit clarification, ...
1
vote
0answers
30 views

What is the correct input shape for my LSTM network?

My professor gave us a workshop where we have to do classification of a dataset of ECG signals between healthy and unhealthy types using LSTM. Each signal consists of 1,285 time steps. What my prof ...
0
votes
0answers
38 views

Is there an audio dataset with the corresponding phonemes in the audio?

I am looking for a dataset of clear audio, a corresponding transcript (optional), and most importantly a list of all the phonemes said in the audio, with the length of each phoneme and a mention of ...
1
vote
0answers
33 views

How to perform regression with multiple numeric (positive and negative) inputs and one numeric output?

I have a dataset with different types of numerical values (both negative and positive numerical values) for the inputs (for example, -40, -35, 1, 25, 39, etc., that is, multiple inputs) and single ...
1
vote
2answers
94 views

How can I find what does an specific neuron do in neural network?

How can I know what each neuron does in NN? Consider the Playground from Tensorflow, there are some hidden layers with some neurons in each. Each of them shows a line(horizontal or vertical or ...). ...
2
votes
1answer
58 views

Are there ensemble methods for regression?

I have heard of ensemble methods, such as XGBoost, for binary or categorical machine learning models. However, does this exist for regression? If so, how are the weights for each model in the process ...
2
votes
1answer
35 views

How to reduce variance of the model loss during training?

I know that stochastic gradient descent always gives different results. What are the best practices to reduce this variance today? I tried to predict simple function with two different approaches and ...
0
votes
0answers
19 views

What are examples of models for traffic sign detection that can be easily implemented?

I'm working on a college project about traffic sign detection and I have to choose a paper to implement it, but I have basic knowledge of TensorFlow and I'm afraid of choosing a paper that I can't ...
0
votes
0answers
29 views

How can we make sure, how well the reinforcement learning works?

I read a paper which is about Deep Reinforcement Learning and it tries to use this method on stock data set. It has been showed that it reach the maximum return(profit). It has been implemented in ...

1 2 3 4 5