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
0answers
15 views

How do to be stronger and faster Reversi AI like Alpha Zero?

At the beginning My English possible strange because I'm not a native speaker. So, don't mind such mistakes。 The real beginning from here I made AI for othello AKA reversi(8×8) like Alpha Zero ...
0
votes
0answers
27 views

Training with many CPU cores doesn't improve performance

I ran my job on a computing cluster: first with 4 cores, then with 32 cores (2 nodes). But the training time is pretty much exactly the same for both of them: ~67 seconds per step. I am trying to ...
0
votes
0answers
7 views

How to set loss weight to zero for an output dimension in keras?

Suppose I am training a model to detect facial keypoints that allow occlusions to be present. The input is an image of a face, and the model has to predict the x,y coordinate of both eyes and mouth. ...
1
vote
0answers
16 views

Problem in reinforcement learning with Tensorflow

I have found this part of code, but I do not actulay how it works. Because I am new to Tensorflow, I do not know it. Anybody can help me and explain it to me? ...
1
vote
0answers
18 views

How to implement CNN with variable number of images in tensorflow or keras?

Suppose I have a problem where I want to classify the color of LEDs seen in the image. I can use OpenCV to pinpoint the exact location of these LEDs but I do not know their color for sure because the ...
0
votes
0answers
27 views

How could I locate certain words or numbers in a financial statement?

I would like to code a script that could locate a specific word or number in a financial statement. Financial statements roughly contain the same information, they are however not identical and ...
1
vote
2answers
39 views

TensorFlow 2.0 - Normalizing input to DNN (on structured data)

I have a structured dataset of around 100 gigs, and I am using DNN for classification in TF 2.0. Because of this huge dataset, I cannot load entire data in memory for training. So, I'll be reading ...
1
vote
1answer
16 views

The best way of classifying a dataset including classes with high similarity?

I have a dataset which has two very similar classes (men wrestling, women wrestling). I've used InceptionV3 as a classifier to solve the problem of classifying this dataset. Unfortunately, the ...
1
vote
0answers
9 views

How to use TPU for real-time low-latency inference?

I use Google's Cloud TPU hardware extensively using Tensorflow for training models and inference, however, when I run inference I do it in large batches. The TPU takes about 3 minutes to warm up ...
1
vote
0answers
16 views

Does `tf.data.Dataset.take()` return random sample? [migrated]

Different calls of tf.data.Dataset.take() return different batches from the given dataset. Are those samples chosen randomly or is there another mechanism at play? ...
0
votes
1answer
23 views

How can we print weights per iteration in a simple feed forward MLP for an specific class?

im working on a project in which I have to make a multi-layer perceptron with two hidden layers with 3 nodes in each. The target value in my data contains 8 unique values/classes. One of the tasks ...
1
vote
1answer
17 views

Is a VGG-based CNN model sometimes better for image classfication than a modern architecture?

I have an image classification task to solve, but based on quite simple/good terms: There are only two classes (either good or not good) The images always show the same kind of piece (either with or ...
1
vote
1answer
49 views

Which model can I use for this problem with multiple inputs and outputs?

Which model is the most appropriate for this problem with multiple inputs and outputs? The data set is A1, A2, A3, A4, A5, A6, B1, B2, B3, B4 where ...
2
votes
0answers
40 views

How to implement loss function of H-GAN model

I was trying to implement the loss function of H-GAN. Here is my code . But it seem somethings wrong, maybe is recognition loss on z (EQ 9). I used the EQ 5 on MISO to calculate it. Here is my code: ...
0
votes
0answers
19 views

Why is the value range of my LSTM model's prediction different from my test labels?

I am using LSTM to do time-series anomaly detection. The data is an hourly sensor input across multiple years (i.e. the global_active_energy attribute of the dataset from https://www.kaggle.com/uciml/...
1
vote
0answers
91 views

How can I use Flask to integrate a chatbot created with TensorFlow into a website?

I have recently started developing a chatbot with TensorFlow. I already have a model that receives a question and outputs an answer. But how do I use Flask to integrate my Tensorflow chatbot model ...
0
votes
0answers
13 views

How does keras `train_on_batch` return value work?

From the doc, train_on_batch() will return a scalar representing the loss and the metric. I want to know whether the loss/metric is evaluated before the weight is ...
0
votes
1answer
73 views

Indoor positioning with variable number of distance measurements in tensorflow

Currently I have a setup where I'm determining the position of a transmitter using the RSSI of 4 receivers. Its a simple feed-forward network with some hidden layers, where the input is the RSSI ...
1
vote
0answers
14 views

tf.data.Dataset: method argument of from_tensor_slices(tensors) unclear [closed]

I'm new to tensorflow and I am working through the Titanic tutorial of Tensorflow 2.0. In this tutorial at some point they create a dataset by applying ...
0
votes
1answer
46 views

TF Keras: How to turn this probability-based classifier into single-output-neuron label-based classifier

Here's a simple image classifier implemented in TensorFlow Keras (right click to open in new tab): https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/quickstart/...
1
vote
0answers
15 views

Trying to separate spiral data with neural network, learning tensorflow

I am learning how to use tensorflow without keras, just to make sure I understand tensorflow directly. I created a spiral-looking datasets with 100 points of each class (200 total), and I created a ...
0
votes
0answers
16 views

How to recognize two different objects with the similar shape, but different size

I am using Mask-RCNN neural network. I retrained my network to detect and mask wheels of die-cast toy cars. I am using images, which present the side of the car (left or right). Sometimes the cars ...
2
votes
0answers
135 views

Why the loss keep increasing during training?

I'm trying to use TensorFlow and this how I compute the loss ...
1
vote
2answers
48 views

Why is embedding important in NLP, and how does autoencoder work?

People say embedding is necessary in NLP because if using just the word indices, the efficiency is not high as similar words are supposed to be related to each other. However, I still don't truly get ...
3
votes
1answer
33 views

CNN how can i reduce gpu memory usage with large image sizes?

I am trying to train a cnn-lstm model, my sample image sizes are 640x640. I have a GTX 1080 ti 11GB. I am using Keras with tensorflow backend. Here is the model. ...
4
votes
1answer
42 views

dimensions of hidden layer and cell state layer in LSTM

I was following some examples to get familiar with tensorflow LSTM related api, but noticed that all LSTM initialization functions require only num_units parameter which denotes number of hidden units ...
0
votes
1answer
20 views

How to change this RNN text classification code to become text generation code?

I can do text classification with RNN, in which the last output of RNN (rnn_outputs[-1]) is used to matmul with output layer weight and plus bias. That is getting a word (class name) after the last T ...
2
votes
1answer
27 views

Neural network does not give out the required out put?

Made a neural network using tensor flows that was supposed matches an Ip to one of the 7 type of vulnerabilities and gives out what type of vulnerability that IP has. ...
0
votes
2answers
65 views

LSTM network doesn't converge, what should be changed? [closed]

I'm testing out TensorFlow LSTM layer text generation task, not classification task; but something is wrong with my code, it doesn't converge. What changes should be done? Source code: ...
1
vote
0answers
24 views

How to get same accuracy with identical models in Keras and Tensorflow?

As we all know Keras backend uses Tensorflow and so it should give out same kind of results when we provide same parameters, hyper-parameters, weights and biases initialisation at each layer, but ...
1
vote
1answer
31 views

Tensorflow and Keras model having same parameters, hyperparameters, weight and bias initialization give different accuracy? [closed]

I have made sure that layers,parameters, hyperparameters,kernel_initialization, bias_initialization, seed and dataset are all equal. But still the output for both the models are different. ...
0
votes
1answer
29 views

How to map X to Y for TensorFlow RNN training data

Usually for DNN, I have the training data of matching X (2D) to Y (2D), for example, XOR data: X = [[0,0],[0,1],[1,0],[1,1]]; Y = [[0], [1], [1], [0] ]; ...
0
votes
0answers
7 views

Looking for the right type of 1D-Convolution that only considers one column/attribute

My input has the shape of n rows (time steps) and m columns (attributes). I want to train a convolutional neural network on it to predict a class. I am currently using 1D-Convolutions. I got a good ...
-2
votes
1answer
113 views

Python ERROR: No matching distribution found for tensorflow [closed]

Now as I understand that kind of technical questions is out of scope for the ai.stackexchange.com I will use stackexchange.com for such technical questions. Thank you for you all for your ...
3
votes
1answer
110 views

Why isn't my Neural Network based calculator working?

I am playing around with neural networks in Tensorflow and I figured an interesting test would be whether I can write a calculator using a Tensorflow Neural Network. I started with simple addition ...
0
votes
1answer
36 views

Network doesn't converge with ReLU or Leaky ReLU, but works well with sigmoid/tanh

I have these training data to separate, the classes are rather randomly scattered: My first attempt was using tf.nn.relu activation function, but output was stuck ...
0
votes
0answers
25 views

Matterport MRCNN and multiclass classification

I want to create a model which solve a multiclass classification problem. The main concept is: every picture contain only one object the background is very simple all object is coming from the same ...
0
votes
0answers
6 views

Object detector always predict high confidence bounding box after dataset augmentation

I am using the Object Detection API to train a MobilenetV2-SSD object detector with just one class. I started from the sample pipeline tuned for the COCO dataset. During the first training I could ...
0
votes
0answers
38 views

Can neural networks output the rules it is using?

I have made a neural network using TensorFlow that is able to identify IP addresses that are likely to have a vulnerability of type A. I want to output the rule it has made for this identification.
0
votes
1answer
45 views

Generate credit cards dataset for locating number region

Currently I'm working on a project for scanning credit card and text extraction from cards. So first of all I decided to preprocess my images with some filters like thresholding, dilation and some ...
3
votes
1answer
51 views

Is it useful to eliminate the less relevant filters from a trained CNN?

Imagine I have a tensorflow CNN model with good accuracy but maybe too many filters: Is there a way to determine which filters have more impact in output? I think it should be possible. At least, if ...
0
votes
1answer
64 views

Should I use single or double view for gender recognition?

My project requires gender recognition of people shown on the given images, with more than one person per image. However, these people can be positioned in frontal or side view(passing by ...
0
votes
1answer
43 views

Should the biases be zero or randomly initialised?

I'm initialising DNN of shape [2 inputs, 2 hiddens, 1 output] with these weights and biases: ...
0
votes
3answers
91 views

Accuracy too high too fast?

I have a simple text classifier, with the following structure: ...
2
votes
1answer
42 views

Understanding the intuition behind Content Loss (Neural Style Transfer)

I'm trying to understand the intuition behind how the Content Loss is calculated in a Neural Style Transfer. I'm reading from an articles: https://medium.com/mlreview/making-ai-art-with-style-transfer-...
0
votes
1answer
50 views

Why do I get a straight line as an output from a neural network?

I am using feedforward neural network for regression and what I get as a result of prediction is a constant value visible on the graph below: Data I use are typical standardised tabular numbers. The ...
4
votes
3answers
227 views

Is a GPU always faster than a CPU for training neural networks?

Currently, I am working on a few projects that use feedforward neural networks for regression and classification of simple tabular data. I have noticed that training a neural network using TensorFlow-...
0
votes
1answer
20 views

Solution to classify product names

I have a bunch of training data for classifying product names, around 30,000 samples. The task is to classify these product names into types of product, around 100 classes (single words). For example:...
1
vote
1answer
38 views

TensorFlow estimator DNNClassifier fails to fit simple data

The ready-to-use DNNClassifier in tf.estimator seems not able to fit these data: ...
2
votes
1answer
46 views

Why tf object detection api needs so few pictures?

I am wondering why tf object detection api needs so few picture samples for training while regular cnns needs many more? What I read in tutorials is that tf object detection api needs around 100-500 ...