Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
10 views

How to load pre-processed .txt data and use it for training convolutional networks?

I have a lot of '.txt' (pre-processed) files related to C3D and I need to use this to train and test while using CNN model. How does one go about this? Most of data in each .txt files are formatted ...
0
votes
0answers
8 views

openai gym, bound actions to range for continuous action spaces

I have a DDPG implementation that is workable for MountainCarContinuous-v0 where the continuous action range is -1. to 1.. I am using a tanh activation in the final layer of the Actor network as seen ...
0
votes
0answers
8 views
0
votes
0answers
11 views

IndexError: too many indices for array when switching dataset to MNIST

I am trying to run a Transfer Learning Code from Github Section 9. Transfer learning for large image classification. I have gotten the original code to work with the flower dataset and inception v3. I ...
1
vote
0answers
8 views

Question with tensorflow overfiting on mnist dataset

I am a beginner in the Tensor Flow and I am trying to figure out the overfitting issue. I took an example in a quite popular GitHub repo and modify a little bit. https://github.com/floydhub/...
1
vote
0answers
10 views

Plotting Loss on Validation Set for Text Summarization Neural Net

I am using a seq2seq encoder-decoder neural net with attention to summarize text, but I think it may be overfitting. https://github.com/dongjun-Lee/text-summarization-tensorflow Is there a way to ...
1
vote
1answer
24 views

Accuracy improving but, val_acc oscillating in ConvNet. What does it mean?

In my ConvNet model, i'm trying to classify some images. It is malware images and it doesn't contain complex features (i think), as expected model learn to classify images easily. You can see my ...
-1
votes
0answers
17 views

USE GPU with Macbook pro on NVIDIA GeForce GT 650M

I am trying to train my model with Keras in Tenserflow backend with my GPU. I tried everything, installed Cuda and also followed some instructions on the web, however couldnot get it work. ...
0
votes
0answers
19 views

How to do Natural Language Processing with few samples only?

I am familiar with SMOTE (Synthetic Minority Oversampling), and the Python Library imbalanced-learn, which can be used to handle ...
3
votes
1answer
52 views
+50

Why does my model only converge when I add a MaxPooling with stride of 1 layer at the beginning?

I have a model that takes an input of inertial sensor data collected at 60 hertz and outputs one of two classes. I have broken the data into 1 min snapshots which seems to be appropriate. I have split ...
1
vote
0answers
28 views

Something is disastrously wrong with my neural network and what it's produced

I just got a neural network to run and although it doesn't raise any exceptions, I'm left with a horrible mess after 80 to 100 epochs: After 100 epochs with the adapted code: After 100 epochs with ...
4
votes
4answers
497 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 ...
0
votes
1answer
34 views

Please explain CNN architecture

I have this below architecture I would like to understand below question This is my code and my image size is 50X50 ...
0
votes
0answers
14 views

How to code a CNN with batches with different input shapes

I want to make a CNN or FCN that can take grayscale images as an input and outputs a color image. It is very important to me that the size of the images can vary. I heard that I can only do this when ...
0
votes
0answers
37 views

Neural network with different input shapes

I'm currently designing the architecture of a neural network for the colorization of grayscale images. Later on it should be able to colorize images with different sizes and different aspect ratios. I ...
1
vote
0answers
13 views

How can I edit log from tensorflow or plot in tensorboard?

I trained a neural network (32 epochs). I stop it. And next load weights from last epoch and I have been training for 18 epoch. Unfortunately, it started at 1 epoch and I got ugly plots. What can I ...
0
votes
1answer
26 views

Anyone have fruit disease dataset? [closed]

I am doing a project on fruit disease recognition and classification. Anyone have an existing dataset of fruit diseases? Can you help me to find one?
0
votes
1answer
51 views

Maximize Precision Deep Learning

For some binary image classification problems having close to 100% precision is super important and recall is much less important. What are best practices for maximizing precision? Setting the ...
0
votes
0answers
30 views

tensorflow eager execution outputs only same values

I'm trying to convert my tensorflow code to tensorflow eager. The problem is the forward pass predicts only the same actions for different input values in eager mode. The normal tensorflow code with ...
0
votes
1answer
33 views

Neural Net Accuracy: Test Set vs Real World Data

Neural Net accuracy is high on test set but low on new real world image examples. Looking for advice regarding what generally causes this scenario and how to fix it. Sampling basis? Training/test ...
0
votes
0answers
26 views

Bead detection in a necklace using TensorFlow Object detection

I want to detect and show the count of beads in a necklace. For this purpose, I am using a TensorFlow object detection API. I have the images dataset similar to this image, I want to know what kind ...
0
votes
1answer
14 views

Same classification given for neural network regardless of the input

I am using the MNIST classification tutorials on the TensorFlow website to create my own classification program to predict a footballers value using the FIFA 19 dataset. However, when I run my program,...
0
votes
0answers
11 views

How cnn feature map feed to lstm cell in tensorflow?

If possible suggest some good documentation about tensor shape.
1
vote
1answer
61 views

TypeError: 'tuple' object cannot be interpreted as an integer

I have an image (480,640,3) and I am trying to resize it to (150,150,1). Since my Keras model has been trained on images of shape (150,150,1), unfortunately I cannot seem to resize it using the PIL ...
0
votes
1answer
28 views

My model accuracy doesn't change after first epoch

I've created a model to predict housing prices in LA, and what should be a simple regression problem, is giving me headache because the loss is just too big and my accuracy wont change. I've already ...
2
votes
0answers
17 views

Manual install vs conda install tensorflow-gpu

Asking mainly for Ubuntu 16.04/18.04. What's the difference between installing CUDA and cuDNN together with tensorflow-gpu in conda (conda install tensorflow-gpu), ...
0
votes
0answers
13 views

How to set 2 GPU in Mask RCNN? TypeError: __init__() missing 2 required positional arguments: 'inputs' and 'outputs'

I found this: 'https://github.com/matterport/Mask_RCNN/issues/511' pip install keras==2.1.3 - done. change code in parallel_model - done. ...
2
votes
1answer
76 views

Keras + Tensorflow CNN with multiple image inputs

I have a CNN that needs to take in 68 images that are all 59x59 pixels. The CNN should output 136 values on the output layer My training data has shape (-1, 68, 59, 59, 1). My current approach is to ...
0
votes
0answers
18 views

How can we add preprocessing steps, in the keras sequential model itself?

Is there a way to add a layer which includes my preprocessing steps in this sequential model.For example ...
1
vote
0answers
45 views

Variational AutoEncoder giving negative loss

I'm learning about variational autoencoders and I've implemented a simple example in keras, model summary below. I've copied the loss function from one of Francois Chollet's blog posts and I'm getting ...
0
votes
0answers
15 views

Issues with using stateful in StackedRNN cells

I am having issues with using the 'stateful' feature when building stacked RNN using LSTMCell object. I am following the instructions on tensorflow on how to set 'stateful = True' by passing the '...
1
vote
1answer
74 views

SVM with Tensorflow

I have an array of Numpy with the following data, for example: ...
1
vote
1answer
48 views

keep_dims is deprecated, use keepdims instead

I downloaded: !git clone https://www.github.com/matterport/Mask_RCNN.git os.chdir('Mask_RCNN') And I've got an error: which version I should have of Keras? <...
1
vote
0answers
45 views

Training model in Keras(TF backend) with GPU

I want to train my custom dataset for licence plate detection. I have 2000 image for this. First, I trained my labelling dataset in Keras (TF backend) with CPU. optimizer : Adam, learning rate : 0....
1
vote
0answers
23 views

How to apply only 3 layers of a network to a data

I want to use the 3rd layer's output of the VGG16 network. The error is like below: ...
0
votes
1answer
26 views

How to do transfer learning on a pre-trained ResNet50 with different image size

I have a pretrained ResNet model which is trained on 64x64 images. I would like to do transfer learning with new dataset that contains 128x128 images. I am loading the model like: ...
0
votes
0answers
20 views

Using VAE with Sequence to Sequence Approach

In the code below, I'm using a VAE with a seq-to-seq approach for translation. At the beginning I sarted only by using a simple seq-to-seq approach which implements a RNN-AE, until this step I had not ...
2
votes
1answer
41 views

multi-output regression problem with tensorflow

number of features: 12 , -15 < each feature < 15 number of targets: 6 , 0 < each target < 360 number of examples: 262144 my normalization: I normalized the features so that they are ...
1
vote
1answer
40 views

Why are my predictions broken when performing image segmentation with TensorFlow?

I am attempting semantic image segmentation with TensorFlow. Just to get something working, I am taking this one training image, training the network on that image for a little while, and then "...
0
votes
1answer
21 views

implementing conv2d in fourier domain using np.einsum --> ValueError: einstein sum subscripts string contains too many subscripts for operand 0

According to the convolution theorem, convolution operation changes to pointwise multiplication in fourier domain - here I have 'fft_x' of shape (batchsize, height, width, in_channels) which is the ...
0
votes
0answers
37 views

How to map RGB image segmentation ground truth to classes/one-hot vectors in TensorFlow?

Is there a TensorFlow function which takes multicategorical ground truth for semantic image segmentations in the form of RGB images and outputs a tensor with a one-hot vector encoding of the ...
2
votes
1answer
43 views

problem of entry format for a simple model in Keras

I apologize if this question is too elementary for this site. I am new in learning Keras and Tensorflow and I have the following type/shape problem on which I have already wasted too much time. I ...
2
votes
1answer
27 views

Why does TensorFlow convert my decoded image to float32 instead of uint8/16?

I am using the following code to import a bunch of .png images and decode them using TensorFlow: ...
0
votes
0answers
23 views

Tensorflow/Keras, How to convert tf.feature_column into input tensors?

I have the following code to average embeddings for list of item-ids. (Embedding is trained on review_meta_id_input, and used as look up for pirors_input and for getting average embedding) ...
0
votes
2answers
33 views

How to compute f1 in tensorflow

I have code that computes the accuracy, but now I would like to compute the f1 score. ...
0
votes
0answers
9 views

How can I replace an operation in a pretrained graph

So I have a tensorflow graph saved in a .pb file, it works well on my machine, but when I run it on tensorflow v 1.3 it loads fine though it crashes with the ...
1
vote
1answer
44 views

What should I observe when choosing which optimizer suits my Deep Neural Network model?

I have trained my neural network model with optimizers such as RMSProp, AdaGrad, Momentum, and Adam. Currently, after running the code, I have printed out the Train and Test Accuracy of every epoch (...
0
votes
0answers
19 views

Change one node type in Tensorflow graph

So I have a tensorflow graph saved in a .pb file, it works well on my machine, but when I run it on tensorflow v 1.3 it loads fine though it crashes with the ...
0
votes
0answers
28 views

Keras Tensorboard callback stops working after a couple thousand batches

I'm training a model using Keras, and I've written a custom callback, F1Metrics that computes the average F1 score every 1200 batches. In the callback, I write the score to a file, and also append it ...
1
vote
1answer
15 views

Integrate remote sensing & GIS data in a CNN

I am trying to develop a CNN model that takes as input a set of parameters derived from satellite imagery. What are the necessary steps to go through in order to make the Geotiff data acceptable as a ...