Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
0answers
6 views

Convolutional neural network for gray images

I am using vgg16 to design a CNN that takes gray input images. The model give me good results without changing anything related to colors. I am not sure if what I did is correct or not. I want to ...
1
vote
0answers
6 views

Deep Learning ROC and Average Precision Curve Results

I used Vgg16 to create a deep learning model and the dataset is imbalanced so, I used class_weight argument in fit_generator method. The model result as the following: accuracy= 98.9% and loss= 0....
0
votes
1answer
9 views

Tensorflow: Unable to Save checkpoint after every 2 global steps during training the SSD model object detection

python models/object_detection/train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_inception_v2_coco.config INFO:tensorflow:Restoring parameters from /home/rahul/...
1
vote
2answers
21 views

Why normalize when all features are on the same scale?

So I'm doing the tensorflow tutorial found here: https://www.tensorflow.org/tutorials/keras/basic_classification Basically, my input is a [28x28] matrix (image) that I flatten to a [1x784] vector. ...
0
votes
1answer
14 views

Loss function returns nan on time series dataset using tensorflow

This was the follow up question of Prediction on timeseries data using tensorflow. I have an input and output of below format. ...
1
vote
1answer
19 views

Neural network model for sparse multi-class classifier on Tensorflow

The problem I'm trying to solve is the following: the data is Movielens with N_users=6041 and N_movies=3953, ~1 million ratings. For each user, a vector of size N_movies is defined, and the values ...
0
votes
0answers
24 views

Draw ground truth boundary box with predicted boundary box

How can we draw ground truth boundary box with predicted boundary box at the time of inference by making use of tensorflow object detection api?
-1
votes
0answers
5 views

tensorflow-serving errors out [on hold]

I am trying to serve the model over tensorflow serving and I have created the below signature. But it doesnt seem to work. ...
0
votes
0answers
9 views

Sentence classification with tensorflow (Dynamic rnn)

I'm trying to implement a rnn model for sentence classification. Precisely this is the schema I'm trying to implement Sentences are first encoded with word2vec vectors and then fed into the rnn, they ...
0
votes
1answer
18 views

Keras input shape error

I am trying to load a Keras model and make predictions with it and run into a strange error. An minimal example is the following: ...
0
votes
0answers
8 views

I am unable to access tensorflow through my python eventhough I installed it correctly

I used "pip3 install --upgrade tensorflow" to install it on my python 3.6 from anaconda distribution and also add the path. when I tried to import tensorlow it gave me following error. ...
0
votes
0answers
8 views

How to feed huge datasets into Keras Models at a super fast rate?

I'm trying to find an efficient way to train a NN on a huge dataset. To understand the volume of the problem, I have 100x400mb csv files, which take up 20+GB in memory when loaded in pandas. Now the ...
0
votes
0answers
14 views

ValueError: Numpy arrays that you are passing to your model is not the size the model expected

I am trying to perform concatenation on the Bidirectinal LSTM layer. I have my model defined like this: ...
0
votes
1answer
13 views

Complex-Valued input to CNN [closed]

I want to train a CNN. However, my input is images of size 100*100 with complex numbers. I have runned the model, but it failed and the loss didn't decrease. Then I found out that my because my inputs ...
1
vote
1answer
46 views

Prediction on timeseries data using tensorflow

I have an input and output of below format. (X) = [[ 0 1 2] [ 1 2 3]] y = [ 3 4 ] Its a timeseries data. The task is to predict the next ...
0
votes
1answer
15 views

What type of neural network could emulate a binary to HTML conversion tool?

I've got a problem, which I thought could be solved by using a neural network: I've got a binary file and a tool that converts that file into a readable html file (probably a text file as well). How ...
0
votes
0answers
14 views

Error installing Horovod with Tensorflow

I am trying to install Tensorflow and Horovod pip install tensorflow HOROVOD_WITH_TENSORFLOW=1 pip install horovod Then I ran a sample code ...
1
vote
1answer
15 views

How to make two parallel convolutional neural networks in Keras?

I created two convolutional neural networks (CNN), and I want to make these networks work in parallel. Each network takes different type of images and they join in the last fully connected layer. ...
0
votes
0answers
8 views

Fraud Autoencoder in Keras weird metrics

I have been hammering this simple sketch for some time now, and I still cant wrap my head around what is happening. I am beginning to suspect that the error lies in the dataset, but anyway, I need ...
0
votes
1answer
14 views

We are using PostgreSQL to store big data and are concerned it may crash the on-board Neural Net. Any thoughts?

We have figured out how to write Big Data to our PostgreSQL database. We would like to run this (normalized) data into the on-board Neural Network in Orange. Our lead programmer said he thought Orange ...
0
votes
1answer
21 views

Can't train input variable with Keras+Tensorflow

I have a Keras model and I want to do some cool visiualizations with it. It's an object recognition network. So I thought, It would be cool to input a blank image into the network and treat the image ...
0
votes
0answers
12 views

Tensorflow: how to restore only specific hidden layers from checkpoint and use them to build a different computational graph for inference?

Let's say I trained a model with a very complex computational graph tailored for training. After a lot of training, the best model was saved to a checkpoint file. Now, I want to use the learned ...
0
votes
0answers
6 views

Which classifier to select for extracting errors from log file?

I am fairly new to data science, so I have a task to extract the error from a log file if it's return code is not equal to Zero The log file (if there is error) consists of an error, I want to get it ...
1
vote
1answer
44 views

How to Implement a Custom Loss Function with Keras for a Sparse Dataset

My dataset is composed of an idle system that, at some time instants, receives requests. I'm trying to predict these instants through a clock. Since the requests are sparsely distributed (I've forced ...
5
votes
0answers
69 views

Why does my Keras model learn to recognize the background?

I'm trying to train this Keras implementation of Deeplabv3+ on Pascal VOC2012, using the pretrained model (which was also trained on that dataset). I got weird results with the accuracy quickly ...
0
votes
0answers
23 views

Validation set error vs training set error in a simple neural net

I am currently making a simple neural net with Tensorflow core API. I am running simple data through a simple network just for educational purposes. I plot both the training error and the validation ...
1
vote
0answers
11 views

How to implement clipping the reward in DQN in keras

How to implement clipping the reward in DQN in keras? especially how to implement clipping the reward? Is this pseudo code correct: ...
4
votes
2answers
54 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 ...
0
votes
0answers
18 views

How to improve the under-fitting issue of my RNN Autoencoder on random squences?

I am trying to use RNN (seq-to-seq) as Autoencoder to reconstruct random sequences (classification). However, the model is suffering from under-fitting issue in which it can't improve the training ...
2
votes
0answers
32 views

What are the effects of clipping the reward in stability?

I am looking for stabilizing my results of DQN, I found clipping is one technique to do it but I did not understand it completely! 1- what are the effects of clipping the reward, clipping the ...
1
vote
0answers
8 views

Model an infrequent linear feature in TensorFlow

I am trying to predict energy usage of homes. I have a feature (home square footage) that is highly useful when available, but is often not available (in which case it is 0). I want TensorFlow to ...
0
votes
0answers
16 views

Trainig the PNET chain in MTCNN

I am trying to implement the MTCNN as explain in this paper: https://kpzhang93.github.io/MTCNN_face_detection_alignment/index.html I cannot fully understand the training of the cnn chains. Do we also ...
0
votes
0answers
24 views

Softmax probabilities for SVM

I have a simple binary classifier using Alexnet where it outputs if an apple is class 1 or class 2. Currently, I have the code as below ...
0
votes
1answer
115 views

can't install tensorflow with gpu [closed]

I'm trying to install Tensorflow using GPU with CUDA 9.0. I have downloaded and installed CuDNN v 7.0.5. However when I want to train a model on Keras I get an issue: ...
0
votes
0answers
14 views

Feedback loop implementation for multi-label DNNClassifier

Our current implementation of recommender system is based on tf.estimator.DNNClassifier. And we're using weight_column hyper-parameter defined as ...
1
vote
1answer
26 views

Tensorflow: how to look up and average a different amount of embedding vectors per training instance, with multiple training instances per minibatch?

In a recommender system setting: let's say I want to learn to predict future item purchases based on user past purchases using an approach inspired by Youtube's recommender system: Concretely, let's ...
0
votes
1answer
18 views

Batch data before feed into CNN network

I am working on a project to classify CT scan images using the CNN model, the image size is huge and I want to feed it into the network using the idea of batches, tried doing that with this pieces of ...
5
votes
1answer
37 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 ...
2
votes
0answers
86 views

Cross validation for convolutional neural network

I am using Keras to create a CNN model, and I would to use K-fold cross-validation to train the dataset. The dataset contains images and I am using ...
3
votes
0answers
32 views

Genarate one hour time interval array using pandas in python (import from csv) to predict next value

I am trying to generate one hour one hour time interval to predict next value according to my data set imported from csv file. Here according to the time it will give outputs include in x column. This ...
1
vote
0answers
22 views

how to load label data presented in raster format into Keras/Tensorflow

I want to use CNN network to segment 2 objects (binary: "0: object not present 1: object present") into shapes but I have an issue with data. The train data is 150 images and in "jpg" format and the ...
1
vote
0answers
29 views

Training a convoltion neural network for localization

I am new into convolutional neural networks and I am trying to build a cnn for localization of object on tensorflow. Currently I am trying to replicate a cnn similar to that of Alexnet and then want ...
1
vote
0answers
35 views
0
votes
0answers
7 views

Is this possible in Tensorflow to only partially loading a model during training?

I'm training 1.6 million embeddings, which Google Colab can not handle due to lack of ram (Colab has 12.7 GB ram) if I go over an embedding size of 80. I was wonder if somehow Tensorflow could only ...
1
vote
1answer
21 views
0
votes
0answers
4 views

Is this possible in Tensorflow to only partially loading a model during training?

I'm training 1.6 million embeddings, which Google Colab can not handle due to lack of ram (Colab has 12.7 GB ram) if I go over an embedding size of 80. I was wonder if somehow Tensorflow could only ...
2
votes
2answers
29 views

What is the difference between using numpy array images and using images files in deep learning?

What is the difference between using numpy array images and using images files in deep learning? Which way is better?
1
vote
0answers
22 views

How to implement facial attendance system using less number of images of particulars

I have a project to implement facial Attendance where I have 5-6 images of particular and when individual comes, model should map the current image with person's earlier available images so if ...
1
vote
2answers
24 views

Is it reliable to use TensorFlow (ML in general) to classify baggage bag tags based on the presence of a green stripe?

The images are identical except for the presence of the stripe on the side. I am trying to use a classify the images into 2 classes: greenStripe, noGreenStripe. I tried to use tensorflow retrain with ...
2
votes
1answer
32 views

Should I use rescale parameters for data augmentation? [closed]

I am using Keras library to build a CNN model. I want to use data augmentation for training data. Should I use rescale parameters for data augmentation? ...