Questions tagged [tensorflow]

TensorFlow is an open source library for machine learning and machine intelligence. TensorFlow uses data flow graphs with tensors flowing along edges. For details, see https://www.tensorflow.org. TensorFlow is released under an Apache 2.0 License.

Filter by
Sorted by
Tagged with
3
votes
1answer
441 views

Is it appropriate to use polar images as input to CNNs? Or must they be Cartesian transformed first?

I have built a convolutional neural net which trains on data originally represented in polar space (measurements are a function of angle and distance). My pipeline begins by converting coordinates to ...
2
votes
2answers
24 views

Group neural networks outputs using Keras/Tensorflow

I am trying to group the outputs of my neural network, in order to have them perform a separated classification. Let's take the example where the groups are constituted of two nodes and we previously ...
1
vote
1answer
20 views

How can I have the same initialization for all my networks?

I want to have the same weights for layer initializations in all my networks, so that when I'm comparing their first epoch loss they all start from the same value. Is there a way in keras to do this? ...
1
vote
1answer
96 views

Detecting address labels using Tensorflow Object Detection API

I am experimenting with the Tensorflow Object Detection API on a Windows 7 machine. I am trying to detect US address labels (and similar blocks of text) as they appear on a piece of mail or an ...
0
votes
1answer
34 views

Object detection model using images which have single instance of class per image-can it detect multiple instances in a single image?

I tried to train Faster R-CNN to detect multiple instances of a single class (eg. pomegranate on a pomegranate tree) but the training data consisted of 200 images where each image had only one object ...
0
votes
0answers
3 views

How to use a loss functions closed-form gradient even when it does not have a closed-form itself

I have a loss function without a closed analytic form that I want to implement in tensorflow that has a nice clean gradient (i.e. i have some nice gradient function $f(x)$ that i want to use for ...
0
votes
0answers
12 views

Framing Multiple Parallel Series problem for LSTM

I'm dealing with a multiple parallel time series problem (see here) and I have an issue regarding the non-constant number of sample per timestamp (not timestep!) My problem is the following: I have ...
0
votes
2answers
16 views

Can tanh be used as an output for a binary classifier?

I am creating a binary classifier in Keras and here;s the code ...
0
votes
1answer
12 views

Binary classification for variable outputs

I am creating a binary classifier in Keras and here's the code ...
1
vote
0answers
16 views

I am having issues with the output dimensions of my neural network

I am trying to make an image denoiser using a neural network in keras. I have 2 sets of images, un-noised images, and the same images with noise. All the images have the dimensions of (200,200,3). I ...
1
vote
1answer
27 views

Why is this ANN not working?

I have created a Tf.Sequential model to when given an input of a number, get either a 1 if that number is bigger than 5 or 0 if it is not. ...
1
vote
1answer
2k views

How to collect all variables as a list in tensorflow grouped as a function

I am trying to reproduce the cGAN network architecture introduced on the recent paper deep video portrait(2018, Standford) I have defined Generator as ...
1
vote
1answer
116 views

How to pad real-valued sequences

I have several sequences of univariate real-valued time-series data. The sequences are of different lengths and right now I cannot batch them and feed them to a network. What is the correct procedure ...
1
vote
0answers
11 views

Unable to learn weights of a Word2Vec model

I was going to implement a word embedding model - namely Word2Vec - by following this TensorFlow tutorial and adapting the code a little bit. Unfortunately, though, my model won't learn anything. I've ...
2
votes
1answer
110 views

Model building with neural networks

Assume the existence of a collection of physical parameters and a collection of output variables which may depend on the physical parameters. An example in the training dataset consists of a vector ...
5
votes
1answer
692 views

Keras Loss Function for Multidimensional Regression Problem

I am new to DL and Keras. I am trying to solve a regression problem with multivariate outputs (y shape (?, 2)) using Keras (tensorflow backend). I am having my confusion about how the loss is ...
0
votes
1answer
18 views

Resize instead of transposed convolutions

I'm trying to build a decoder version of ResNet, i.e. one that goes from the prelogits layer and attempts to recreate the image. I can get it working by using transposed convolutions, but the quality ...
1
vote
1answer
361 views

How should I construct a binary classifier for thousands of positive data and millions of unlabeled data?

So far, I have stumbled upon many advices and papers on PU Learning and Unary classification. TLDR: Does anyone have suggestions for specific algorithm or implementation for labeled data of only one ...
-1
votes
0answers
8 views
0
votes
1answer
21 views

CNN 1D for time series. Value Error. I did read all the possible answers in StackOverflow regardiing this problem

I been fighting with this problem for 2 weeks now. And I extensively research for solutions here and in other sites. I have a dataset of 4 dimensions device_id, time and longitude and latitude. After ...
-2
votes
0answers
10 views

How to implement a custom attention layer in tensorflowjs? [closed]

How do I add a custom attention layer in my lstm model for tensorflowjs
1
vote
1answer
312 views

How to create a dummy model in Tensorflow

I am a newbie in Machine learning. I found this example using tflearn somewhere. It is the part of the program where we initialize a dummy model before training ...
4
votes
2answers
3k views

What are the consequences of not freezing layers in transfer learning?

I am trying to fine tune some code from a Kaggle kernel. The model uses pretrained VGG16 weights (via 'imagenet') for transfer learning. However, I notice there is no layer freezing of layers as is ...
6
votes
1answer
6k views

How to make my Neural Netwok run on GPU instead of CPU

I have installed Anaconda3 and have installed latest versions of Keras and Tensorflow. Running this command : ...
0
votes
1answer
354 views

Should the cost function be zero using TensorFlow's sigmoid_cross_entropy_with_logits?

I'm building a CNN to make a binary classification (1 or zero). For this I'm using the cost function sigmoid_cross_entropy_with_logits. But for some reason the ...
1
vote
1answer
97 views

tflite_convert a Keras h5 model which has a custom loss function results in a ValueError, even if I add it in the Keras losses import

I have written a SRGAN implementation. In the entry point class of the Python program, I declare a function which returns a mean square using the VGG19 model: ...
0
votes
0answers
16 views

How to load model using Microsoft.ML.Tensorflow?

I'm trying to load model using tensorflow. The model is converted from .h5 to .pb using this method: ...
0
votes
1answer
243 views

Invalid Argument Error when running simple Convolutional Neural Network

I am running a convolutional neural network with CSV files as training and test input. I am getting a strange error that I cannot solve. ...
0
votes
1answer
52 views

Neural Network for regression with one dependent and one independent variable

I am trying to make a simple neural network with one dependent and one independent variable. Could you maybe give me a tutorial or help me with the implementation of a neural network with one ...
4
votes
1answer
2k views

Memory error on using data generator in keras

I am using the following augmentations on dataset of size 9 GB: ...
2
votes
1answer
81 views

How do I use rnn to forecast to n periods with limited data?

So this is my 1st time trying to run a small time-series dataset through an RNN, but after a lot of searching, I haven't been able to find, 1. How I can use this to forecast to n periods ? (like in ...
1
vote
1answer
20 views

Keras custom layer using tensorflow function

I was wondering if there is any other way to write my own Keras layer instead of inheritance way as given in their documentation? My colleague is more comfortable in tensorflow and he gave me a ...
0
votes
1answer
20 views

tensorflow issue with image reading

I am following this example to read an image (from my disk) with tensorflow: ...
0
votes
1answer
16 views

CNN image to image translation: multiple image inputs to one image output

I am interested in training a CNN to take in inputs where each input is a set of low-resolution images and each ground truth is a single high-resolution image. The ground truth high-resolution image ...
0
votes
0answers
5 views

How to use a ragged tensor with a convolutional layer?

I have textual data of various lengths for which ragged tensors seems well suited. For instance my data could look as follows : ...
2
votes
1answer
396 views

Is GEMM used in Tensorflow, Theano, Pytorch

I know that Caffe uses GEneral Matrix to Matrix Multiplication (GEMM) which is part of Basic Linear Algebra Subprograms (BLAS) library for performing convolution operations. Where a convolution is ...
1
vote
1answer
31 views

How to Improve Low Accuracy Keras Model Design?

I am trying to train a system that looks at some data points and predicts the quantity of surfers on a surf break. I have labeled the pattern for the past 2 months and I have 1500+ training examples ...
0
votes
0answers
12 views

How to convert model.h5 to model.pb?

I wrote in google-collab to get the model using keras, but I have to do predictions in Visual Studio using tensorflow I've search for a method converting models from keras .h5 to tensorflow .pb, but ...
0
votes
0answers
23 views

Garbage collection in Tensorflow 1.14

When a variable is created, it is added to collections to allow sharing and reusing. However, this seems like it's a potential for "memory leaks" (strictly speaking, it's not, since there still exists ...
0
votes
0answers
32 views
2
votes
0answers
23 views

Text extraction / mining from specific templates (ML)

believe me if I say that I have read basically all the threads in this website regarding this subject. A lot of them have a similar title, but the problem is somehow different. Small context: just ...
0
votes
1answer
16 views

How can I filter and balance a Windowed Tensorflow dataset with a binary classification label, based on the label?

I have an unbalanced tensorflow windowed dataset with labels (over 90% negative examples) which I am trying to balance by filtering. I am having trouble filtering as my windowed dataset with labels ...
1
vote
1answer
41 views

How can I know the name of the features selected by a Deep Belief Network?

I want to use DBN to reduce the 41 features of nslkdd dataset after transforming nominal data to numeric the number of features increases from 41 to 121 . I used 3 RBMs (121-50-10) now I want to know ...
1
vote
2answers
405 views

error when input function called with shape (2,2)

I am new to Tensorflow and machine learning. I am trying to use high level API from Tensorflow. Please tell me what i am doing wrong. ...
0
votes
1answer
21 views

How to run a model in an application using gpu (without CUDA)

I am looking for a way to utilize a computer’s gpu without using cuda (or any installable software). The reason for this is I have an application where the neural network runs on a user’s computer and ...
0
votes
0answers
16 views

CNN Architecture for Measuring Object Distances

I'm trying to use CNNs for infering object distances from an image. The input images correspond to states of a 2D game: Game states are not represented as images but as matrixes of observations. ...
2
votes
3answers
1k views

Keras' 'normal' LSTM uses the GPU?

I'm running Keras' LSTM (not CuDNNLSTM) but I notice my GPU is under load. I need recurrent dropout, so I can only stick with <...
7
votes
2answers
8k views

Clustering high dimensional data

TL;DR: Given a big image dataset (around 36 GiB of raw pixels) of unlabeled data, how can I cluster the images (based on the pixel values) without knowing the number of clusters ...
3
votes
1answer
73 views

How do I create a Keras custom loss function for a one-hot-encoded binary classifier?

I have a CNN binary classifier with one-hot-encoded labels that I've written using Keras and it's just not training to the metric I want to encourage. My data is very imbalanced (91% class 0, 9% class ...
1
vote
1answer
136 views

Can't save save/export and load a keras model that uses eager execution

I'm following the RNN text-generation tutorial with eager execution pretty much line for line. I've trained the model with my own data set and have saved a low loss checkpoint. I'm able to load the ...