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
1
vote
0answers
20 views

Suggestions for building Localisation algorithm for 5 classes

I'm currently working on a project for object detection using a very light CNN model , but till now I was able to classify all 5 classes with ~94% accuracy with 5 layered CNN using Keras and now I'm ...
2
votes
0answers
27 views

From unsupervised to supervised in fraud detection

I have a question. I am working on the fraud detection domain. And I have data from imports to the country. As you can get from the title, I have unsupervised data. I do not know that the record is ...
0
votes
0answers
10 views

SSD mobilenet v1 with tflite giving bad output

Background I'm using source code from Tensorflow's object detection, as well as Firebase's MLInterpreter. I'm trying to stick closely to the prescribed steps in the documentation. During training, I ...
0
votes
1answer
19 views

Keras generator Function

I am trying to write a batch generator function so that I can train my Keras model using it but I don't know from where to start. Does anyone have some examples or tutorials?
1
vote
0answers
27 views

Errors loading tensorflow (.pb) model into c# (Tensorflow.NET)?

I'm new to tensorflow.NET and I am currently following the documentation online (TF.NET/Example) to import my trained CNN model from python into c#. So far I've imported my protobuf (.pb) file into ...
1
vote
0answers
24 views

Where can I get pre-trained weights for character recognition?

I'm doing a simple pipeline and I need a digit recognition algorithm. There are definitely pre-trained weights out there for character recognition, but I can't find them. They can be in Keras, ...
1
vote
0answers
24 views

Use trained Tensorflow model to predict on different dataset

I have few datasets, I've trained model on the biggest one and now want to see how it will predict values for different set of data. For saving the model, I've used ...
2
votes
0answers
76 views

Relation of Tensors to artificial neural networks

When dealing with artificial neural networks, one is bound to come across the concept of Tensors. In such applications a Tensor is essentially just a data grid, just like a scalar (rank=0), a vector (...
1
vote
0answers
9 views

Getting different result when converting keras model into tensorflow?

I'm trying to convert my Keras model into .pb format to be used in TensorFlow (specifically c# to import into Unity at some later stage). I have 4 output layers that return a heatmap. When I use the ...
1
vote
1answer
33 views

How to convert Scikit Learn logistic regression model to TensorFlow

I would like to use existing Scikit Learn LogisticRegression model in the BigQuery ML. However, BQ ML currently has a hard limit of 50 unique labels and my model needs to handle more than that. BQ ...
0
votes
1answer
16 views

PELU activation: how does it work, and how to implement?

I have encountered PELU (Parametric Exponential Linear Unit) in the literature, but I can't find practical applications of it. Moreover, I have some questions about how it works: Are its parameters ...
0
votes
0answers
9 views

Freezing (graph) a CNN model with an intermediate layer as the output?

I'm looking for a way to freeze a CNN graph where the output is an intermediate layer. I've successfully tried both Model and K.function to get the intermediate layer as shown below. ...
2
votes
1answer
24 views

How to supress previous results in a generative network?

Think of a generative network generating animal names. It's been trained on a set of animal names so this shouldn't be too hard. But say I want to generate 10 animal names. First I run the network ...
1
vote
0answers
10 views

Accessing the intermediate layers of a tensorflow cnn model (Unity)?

I'm new to scripting in Unity and I am doing a project that takes in video from my laptop's camera, then displays a heatmap in AR using the information in an intermediate layer from a CNN model. I've ...
0
votes
2answers
20 views

Feeding large dataset to neural network using tf

I have a csv file of size ~11GB contains 2 million rows located in my local disk as my training data. What's the best way to feed the data to a neural network model? I use tf.keras to build the neural ...
0
votes
0answers
10 views

How can I load file from my local drive in keras using get_file?

I am using google colab and I need to load data from my local drive. How I can do that using get_file? what should be the origin?
2
votes
1answer
42 views

TensorFlow / Keras: What is stateful = True in LSTM layers?

Could you elaborate on this argument? I found the brief explanation from the docs unsatisfying: stateful: Boolean (default False). If True, the last state for each sample at index i in a batch will ...
3
votes
2answers
31 views

TensorFlow Sigmoid activation function as output layer - value interpretation

My TensorFlow model has the following structure. It aims to solve a binary classification problem where the labels are either 0 or 1. The output layer uses a sigmoid activation function with 1 output. ...
1
vote
0answers
29 views

please help with ValueError: Input contains NaN, infinity or a value too large for dtype('float64') [closed]

How to fix error ValueError: Input contains NaN, infinity or a value too large for dtype('float64'). Im thinking the error is from too large for dtype or an infinity. This is an imbalanced ...
2
votes
0answers
44 views

One-hot encoding to embedded vector - BigGAN

I am trying to replicate a BigGAN architecture in Tensorflow https://arxiv.org/pdf/1809.11096.pdf but fail to understand exact nature of inputs. BigGAN generator has 2 inputs, noise ...
2
votes
0answers
10 views

Keras model predicts differently when predicting based on video frame vs. individual snapshot

I'm training a binary image classification model in Keras, with the end goal of parsing through entire videos. I have a script that reads in a few snapshots from training videos and lets the model ...
1
vote
0answers
38 views

Setting up RNN in TensorFlow for time series forecast with variable input series lengths

I am building a model with keras for time series prediction. The structure of the problem is as follows: The input is a time series of 5 numeric features The ...
1
vote
0answers
30 views

How to use arctan2 function inside Keras model?

I'm trying to add arctan2 function to the end of Keras model, but it looks like it is not getting any near even local minimum. Here is my ridiculous but minimal ...
11
votes
7answers
2k views

Why does Keras need TensorFlow as backend?

Why does Keras need the TensorFlow engine? I am not getting correct directions on why we need Keras. We can use TensorFlow to build a neural network model, but why do most people use Keras with ...
0
votes
1answer
39 views

Keras ResNet-50 not performing as expected

I am trying to build a neural network that is capable of classifying the make and model of a car. I am using the VMMR dataset to verify that the network is working, at which point I would like to ...
2
votes
0answers
56 views

Making predictions in TensorFlow 2.0

I use TensorFlow/Keras on a daily basis to make predictions for a project. Everything works fine but I was getting regular warnings about the transition to TensorFlow 2.0 and I thought this week I ...
0
votes
0answers
10 views

GIven some similar pictures,how to detect and mark the differences among these picture by deep learning

Now i have certain images ,they can be classfied into tow groups :right and false .However, two sorts just have small differnece in the detail . (for example ,I possess two maps. Their content is ...
1
vote
0answers
11 views

dense predictions time series

What do we refer to as "dense predictions" for time series ? I am reading through this Or to make dense predictions one step into the future, you might shift the features and labels by one step ...
0
votes
0answers
14 views

Where can I download images along with their annotations xml?

I need images and their annotation(xml) of various catgeries like 'Jackets','truck' ,'glasses' .Which site can I find them or is there any github repository where I ...
2
votes
2answers
94 views

Tensorflow - simple multi-layer perceptron not stabilizing around mean of normally distributed y-values

I'm building an FX trading model where I'm trying to predict the +/- movement of a currency pair 5 minutes into the future. I've had some promising results adapting the model as a classifier (i.e., ...
3
votes
1answer
34 views

building a 2-layer LSTM for time series prediction using tensorflow

From Tensorflow tutorials i am experimenting time series with LSTM In the section 'multi-step prediction' using LSTM tutorial says Since the task here is a bit more complicated than the previous ...
0
votes
0answers
16 views

Tensorflow Object Detection API, update performance measurement

I am using Tensorflow Object Detection API to classify objects in the images. I am using own dataset. I am facing the problem of performance. I need a suggestion about the training strategy. I have ...
0
votes
1answer
13 views

TypeError: object of type 'Bidirectional' has no len()

I'm running a bidirectional LSTM. But this error is appearing: TypeError: object of type 'Bidirectional' has no len() What's wrong in this code? Please help. ...
1
vote
0answers
47 views

Why does my model, which reports high accuracy in training, does not perform well when run on the training set?

I trained a CNN based model on the Stanford Car Dataset and got 99% accuracy. I used test dataset to evaluate the model but it performed very poorly. I knew my model was overfitting and I tried to ...
0
votes
1answer
21 views

How to make model for Multivariate timeseries using tensorflow probability structural model?

I have done modelling for Univariate timeseries but while using multivariate time series ( independent features) not able to ...
1
vote
1answer
30 views

Binary classifier using Keras with backend Tensorflow with a Binary output

I am trying to build a binary classifier with tensorflow.keras Currently unable to identify a solution to having the model generating only 0s and 1s. The code for compiling my tensorflow model. <...
1
vote
0answers
18 views

How can I improve this tensorflow 2.0 function?

I recreated some code I found online for solving the bandits problem using policy gradient. The example was in tensorflow 1.0 so I recreated it with tensorflow 2.0 using eager execution and gradient ...
2
votes
1answer
47 views

Issue with predict generator keras

I'm new with keras with tensorflow backend and I'm trying to do transfer learning with pretrained net. The problem is that the accuracy on validation set is very high, around the 90% , but on test set ...
1
vote
1answer
24 views

Graph isn't an attribute in TensorFlow? Very basic question

Hi am am just starting to learn how to use TensorFlow and this is one of my first projects. I am simply trying to create a graph. This is my code: ...
0
votes
0answers
11 views

Input shape error for multi label segmentation

I am trying to perform multi-class segmentation and when I try to feed the model with my input images and model it get this error: ...
2
votes
1answer
64 views

Confused about steps_per_epoch and validation_steps in Keras

According to the documentation in TF 2: ...
3
votes
1answer
25 views

Choosing the size of Character Embedding for Language Generation models

I am working on a character-based Language Generator, loosely based on this tutorial on the TensorFlow 2.0 website. Following the example, I am using an Embedding() ...
0
votes
0answers
38 views

Cross Entropy loss function performs far worse than Square Mean Error for Multi-class Classification

Relevant Information: I am building an opponent modeler for a poker application where the classification problem is predicting what move the opponent will make next. These moves are classified into ...
5
votes
2answers
60 views

Loss function for multivariate regression where relationship between outputs matters

I am attempting to build a sequential model with Keras (Tensorflow backend) that has multiple outputs. My targets are proportions of a whole so each observation is an array like [0.5, 0.25, 0.15, 0.1]....
2
votes
0answers
21 views

Algorithms for classification / detection of hand gestures

I'm more or less new to machine learning, but I have a side project where I want to detect hand gestures in real time. Right now I'm using simple thresholds with if statements to detect static ...
1
vote
0answers
47 views

Expected performance of training tf.keras.Sequential model with model.fit, model.fit_generator and model.train_on_batch

I am using Keras with Tensorflow backend to train a simple 1D CNN to detect specific events from sensor data. While the data with tens of millions samples easily fits to the ram in the form of an 1D ...
0
votes
0answers
7 views

Train MountainCar-v0 with LSTM

In mountain car envoriment we can accelerate car to left or right. When I get random samples for training, I'm getting 2:1 ratio for acceleration to left. When I train my LSTM model, it reaches ~ 70% ...
1
vote
1answer
16 views

Multiply Tensorflow sequential layer by fixed integers

I'm trying to make a simple reinforcement learning model that makes one of three decisions, A, B, or ...
0
votes
1answer
13 views

Keras model evaluation accuracy vs. observation

I am a newbie here and trying to make sense out of the scores from model.evaluate from what I am actually seeing in model.predict...
0
votes
1answer
22 views

Can i build an image classification model where each image has multiple labels?

If I am building a model where I need to predict the vehicle, color of it, and make of it, then can I use all the labels for a single image and build my model around it. Like for a single image of a ...