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
9
votes
1answer
4k views

What is a tower?

In many tensorflow tutorials (example) "towers" are mentioned without a definition. What is meant by that?
9
votes
2answers
7k views

How can I find out what class each of the columns in the probabilities output correspond to using Keras for a multi-class classification problem?

I'm using transfer learning to build an image recognition model using a pre-trained VGG network in Keras and excluding the final fully-connected layer to get the output weights. I'm then using these ...
9
votes
1answer
361 views

Train a GAN on “before and after” images of dental surgeries [closed]

I want a GAN to train on "before and after" images of dental surgeries; so that it can generate "after" pictures for fresh patients. Input images are like these: https://img.webmd.com/dtmcms/live/...
9
votes
1answer
1k views

Machine Learning: Writing Poems

I'm a student of machine learning, and these days I was trying to learn how to use the TensorFlow library. I've gone through various tutorials and trial&errors with tensorflow, and I thought the ...
8
votes
2answers
3k views

Should use sklearn or tensorflow for neural networks?

I have just started learning Neural Networks for deep learning from cs231. I am trying to implement Neural Network in Python. I am looking at using Tensorflow or scikit-learn. What are some pros and ...
8
votes
2answers
3k views

NN embedding layer

Several neural network libraries such as tensorflow and pytorch offer an Embedding layer. Having implemented word2vec in the past, I understand the reasoning behind wanting a lower dimensional ...
8
votes
1answer
15k views

How do i pass data into keras?

I am currently struggling to understand how i should train my regression network using keras. I am not sure how I should pass my input data to the network. Both the input data and the output data is ...
7
votes
2answers
11k views

Which convolution should I use? Conv2d or Conv1d

I've dataset which contains dlib landmark points of the faces. I'm using keras to train a model. The dataset shape is (length_of_dataset,68,2). I know that I've two ...
7
votes
2answers
9k views

How to deal with large training data?

Currently, I use image files and transform them into a *.npy file(saved as a numpy array) as training data. At present this training data set is nearly 3GB. Now I have more image files, so the ...
7
votes
1answer
7k views

Neural network with flexible number of inputs?

Is it possible to create a neural network which provides a consistent output given that the input can be in different length vectors? I am currently in a situation where I have sampled a lot of audio ...
7
votes
2answers
1k views

Memory error when using more layers in CNN model

On my dell core i7 - 16GB RAM - 4gb 960m GPU laptop, I am working on a project to the classify lung CT images using 3d CNN. I'm using the CPU version of tensorflow. The images are prepared as numpy ...
7
votes
3answers
2k views

Any pytorch tools to monitor neural network's training?

Are there any tools to monitor network's training in PyTorch? I am looking for an equivalent to tensorboard in tensorflow.
7
votes
1answer
5k views

Dealing with extreme values in softmax cross entropy?

I am dealing with numerical overflows and underflows with softmax and cross entropy function for multi-class classification using neural networks. Given logits, we can subtract the maximum logit for ...
7
votes
1answer
232 views

data augmentation when using flow_from_directory in CNN

I want to use a small dataset to create CNN model. So, I am using data augmentation to increase the train dataset. Should I use all augmentation techniques (arguments) that listed here? I have ...
7
votes
1answer
7k views

How to user Keras's Embedding Layer properly?

I'm a bit confused the proper usage of Embedding layer in Keras for seq2seq purpose (I'd like to reconstruct the TensorFlow se2seq machine translation tutorial in Keras). My questions are the ...
7
votes
2answers
16k views

Where to find list of Tensorflow pretrained models available in download.tensorflow.org/models

I am trying the find the pretrained models (graph.pd and labels.txt) files for Tensorflow (for all of the Inception versions and MobileNet) After much searching I found some models in, https://...
7
votes
3answers
12k views

TypeError: Expected binary or unicode string, got [

ERROR SUMMARY: I'm getting the following error: TypeError: Expected binary or unicode string, got [ BACKGROUND: I have several features that are histories of ...
6
votes
4answers
2k views

Why choose TensorFlow?

I have noticed that most of the deep learning developers use TensorFlow. So why choose TensorFlow? What is the advantage of TensorFlow over Theano and CNTK?
6
votes
2answers
17k views

What is the best hardware/GPU for deep learning? [closed]

What is the best GPU for deep learning currently available on the market? I've heard that Titan X Pascal from NVidia might be the most powerful GPU available at the moment, but would be interesting ...
6
votes
3answers
32k views

How to use lists in Tensorflow?

I have a number of lists, such as [1,2,3,4], [2,3,4], [1,2], [2,3,4,6,8,10], whose lengths are obviously unsame. How can I use this as input of placeholder in Tensorflow? As I have tried, the ...
6
votes
4answers
662 views

What are the possible ways to detect skin while classifying diseases?

I am working on a skin disease classification problem where I have successfully created a classifier ( TensorFlow + Keras ) which can classify images of two skin diseases. The sample image needs to ...
6
votes
4answers
11k views

How to improve accuracy of deep neural networks

I am using Tensorflow to predict whether the given sentence is positive and negative. I have take 5000 samples of positive sentences and 5000 samples of negative sentences. 90% of the data I used it ...
6
votes
6answers
7k views

Deep network not able to learn imbalanced data beyond the dominant class

I have data with 5 output classes. The training data has the following no of samples for these 5 classes: [706326, 32211, 2856, 3050, 901] I am using the following keras (tf.keras) code: <...
6
votes
2answers
7k 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
1k views

What is the difference between a Categorical Column and a Dense Column?

In Tensorflow, there are 9 different feature columns, arranged into three groups: categorical, dense and hybrid. From reading the guide, I understand categorical columns are used to represent ...
6
votes
2answers
6k views

Binary Classifier making only one prediction

tl;dr I'm building a binary classifier that always eventually predicts all "0" or all "1" after some number of epochs and I'm looking for possible reasons why/how to proceed. Below is all just more ...
6
votes
1answer
5k views

Keras: How to normalize dataframe with continuous and categorical data?

I have a dataframe with about 50 columns. The columns are either categorical or continuous data. The continuous data can be between 0.000001-1.00000 or they can be between 500,000-5,000,000. The ...
6
votes
3answers
15k views

How to change the names of the layers of deep learning in Keras?

I am using vgg16 to create a deep learning model. I want to know how to change the names of the layers of deep learning in Keras? I tried this ...
6
votes
3answers
2k views

Binary classification of similar images with small region of interest

I have a dataset of microscope images and I want to train a ML/DL algorithm to perform binary classification. The positive class is when there is only one cell in the image, and the negative class is ...
6
votes
1answer
2k views

How to pass features extracted using CNN into RNN?

I have word images as below: Let's say it's a 256x64 image. My aim is to extract the text from the image as 73791096754314441539...
6
votes
1answer
6k views

Possible to use different learning rate for different neuron in Keras/Tensorflow?

The simplest example is to have faster/slower learning rates in the upper/lower layers of a network. I found this post on tensorflow. Is there a similar trick in Keras? Going one step further, can ...
6
votes
1answer
12k views

Implement MLP in tensorflow

There are many resources online about how to implement MLP in tensorflow, and most of the samples do work :) But I am interested in a particular one, that I learned from https://www.coursera.org/learn/...
6
votes
1answer
1k views

How does Tensorflow compute gradients of reduce_min operation?

With a non-differentiable operation, such as a minimization, how does Tensorflow compute the gradients? Some kind of soft-minimum approximation? If so, can I retrieve the analytical computation for a ...
6
votes
1answer
3k views

Keras CNN with low/constant accuracies

I am dealing with the Street View House Number recognition problem. I am trying to train a CNN with Keras. Here is how I prepared the input: ...
6
votes
1answer
3k views

Convolutional autoencoders not learning

I'm trying to implement convolutional autoencoders in tensorflow, on the mnist dataset. The problem is that the autoencoder does not seem to learn properly: it will always learn to reproduce the 0 ...
6
votes
3answers
4k views

Stuck on deconvolution in Theano and TensorFlow

I'm captivated by autoencoders and really like the idea of convolution. It seems though that both Theano and TensorFlow only support conv2d to go from an array of 2D-RGB (n 3D arrays) to an array of ...
6
votes
2answers
1k 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 ...
5
votes
2answers
3k views

In CNN, why do we increase the number of filters in deeper Convolution layers for complex images?

I have been doing this online course Introduction to TensorFlow for AI, ML and DL. Here in one part, they were showing a CNN model for classifying human and horses. In this model, the first ...
5
votes
5answers
2k views

How to fix these vanishing gradients?

I am trying to train a deep network for twitter sentiment classification. It consists of an embedding layer (word2vec), an RNN (GRU) layer, followed by 2 conv layers, followed by 2 dense layers. Using ...
5
votes
2answers
18k views

Value Error: Operands could not be broadcast together with shapes - LSTM

I am trying an LSTM model using tensorflow following this tutorial . I am having trouble understanding why am I getting an ...
5
votes
5answers
7k views

Has anyone been able to run Tensorflow with GTX 1070 GPU on Ubuntu 16.04/15.10/15.04?

I've been tearing my hair out for the last 3 days and I just can't get it to work. I recently got a GTX 1070 and I went to a fresh install with: Ubuntu 16.04/15.10/15.04 PPA drivers nvidia-367 Cuda ...
5
votes
2answers
178 views

vgg16 needs less epochs than resnet ,why?

Recently i Have been comparing the vgg16 with resnetv1 with 20 layers.I have found out that although each epoch on vgg takes more time to complete,it generally needs less epoch to reach a certain ...
5
votes
1answer
29k views

Using Tensorflow model for prediction

I am new to tensorflow. I have manged to train and validate a CNN, saved the session through the Saver object into a CPKT file and loaded it back. Now I'd like to use the trained model in order to ...
5
votes
2answers
1k views

Machine Translation using seq2seq model

I am trying to perform Hindi To English translation using s2s model, following - https://chunml.github.io/ChunML.github.io/project/Sequence-To-Sequence/ I have used https://github.com/karimkhanp/...
5
votes
1answer
275 views

Fully connected layer in deep learning

How to determine the best number of the fully connected layers in CNN? Can I use only one fully connected layer in CNN? How to determine the dimension of the fully ...
5
votes
2answers
850 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 ...
5
votes
1answer
773 views

Convolution Neural Network Loss and performance

I have a set of about ~100,000 training examples. Ratio of positive to negative example is roughly 1:2. The true ratio is more like 1:100 so this represents a major downsampling of the negative class. ...
5
votes
2answers
5k views

Weighted Binary Cross Entropy Loss — Keras Implementation

I have a binary segmentation problem with highly imbalanced data such that there are almost 60 class zero samples for every class one sample. To address this issue, I coded a simple weighted binary ...
5
votes
1answer
2k views

The most used loss function in tensorflow for a binary classification?

I am working on a binary classification problem using CNN model, the model designed using tensorflow framework, in most GitHub projects that I saw, they use "softmax cross entropy with logits" v1 and ...

1
2
3 4 5
32