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
2
votes
0answers
20 views

Why does this implementation of SimpleNet use 3x3 kernels on it's final layer for cifar10?

Question; I'm trying to implement simplenet in tensorflow and I have a question that I can't seem to answer myself. The implementation I'm basing this off of is here: https://github.com/Coderx7/...
2
votes
0answers
58 views

Help understanding the Tensorboard histogram names and meaning in an LSTM Model

Can someone please help me understand what the names and shapes of the following tensorboard histogram outputs mean about an LSTM model I coded? Thank you! I understand the terms in the names like ...
1
vote
0answers
97 views

TensorFlow 2: Find MAE, RMSE for validation dataset in time-series LSTM

TensorFlow 2 "Time series forecasting tutorial" (https://www.tensorflow.org/tutorials/structured_data/time_series#recurrent_neural_network) gives an example of a LSTM multi-step prediction model that ...
2
votes
2answers
35 views

How are the Convolution kernels learned?

As I went through the basics of machine learning, I failed to understand how do the Convolutional layers in a CNN learn the convolution kernels. After looking at first few tutorials, I thought the ...
3
votes
0answers
41 views

Terrible Tensorflow performance on powerful production server

Background I am building a simple face detection API with Python, Flask and the MTCNN face detector. My problem is that the model and API are running really quickly (batch of 100 images takes 0.5-0....
1
vote
1answer
18 views

Multi layer full connected neural network in tensor flow

I am reading about deep learning using tensor flow using book Tensor flow for deep learning by Bharath RamSundar et. Here author implemented as below in chapter 5 ...
1
vote
0answers
18 views

how to update a face recongition ( e.g facenet)

I'm searching for a face recognition that detects new faces not just faces getting from the datasets, for example, facenet is a project that can detect and recognize a face from labels. I would like ...
3
votes
0answers
30 views

Avoid Load and re-Train of a Neural Network Model [closed]

I built a feedforward neural network, his goal is to classify a target value, the train has to be defined for n-days. The input is constituted by 12 neurons (since I have 12 different data each of ...
2
votes
1answer
126 views

What is the difference between step size and learning rate in machine learning?

I am using TensorFlow to implement some basic ML code in Python. I was wondering if anyone could give me a short explanation of the meaning of and difference between step size and learning rate in the ...
3
votes
2answers
302 views

Keypoint detection from an image using a neural network

I am trying to design and train a neural network, which would be able to give me coordinates of certain key points in the image. Dataset I've got a dataset containing 1800 images similar to these: ...
3
votes
1answer
85 views

Why is my validation loss going up while my validation accuracy also goes up?

Scenario: I've been training a CNN for the cifar10 dataset. I'm using tensorflow, and a CNN with 12 conv layers and 1 dense layer before a softmax dense layer. I'm using data augmentation as well ...
0
votes
0answers
49 views

Torch and TensorFlow: Is Variable(torch.cuda.FloatTensor([x]) equivalent to tf.convert_to_tensor([x])?

I would like to ask you if this: Variable(torch.cuda.FloatTensor([x]), requires_grad=False) in Torch is the equivalent to this: ...
4
votes
0answers
318 views

Tensorflow, Optimizer.apply_gradient: 'NoneType' object has no attribute 'merge_call'

My programme gives the following error message: ...
0
votes
0answers
15 views

CNN: What's the relationship between point clouds and features derived from point clouds?

What's the relationship between point clouds and features derived from point clouds? Particularly in CNN prediction. Particularly, I have point clouds about which I can imagine features that are ...
0
votes
0answers
540 views

Tensorflow2 graph tensor leaking when using layer.output

I am trying to build a Contractive Auto Encoder using Tensorflow 2.0. The model's loss function uses the encoder output in its calculations. The problem is that every time i retrieve the output, it ...
0
votes
0answers
23 views

Which tensorflow operations trigger memory allocation?

Upon reading the documentation for the TensorArray class, I encountered this line: If True, the TensorArray will be colocated on the same device as the Tensor used on its first write (write ...
0
votes
0answers
95 views

Keras custom metrics - MAP and MRR

I am trying to build a LSTM model in keras where I have one question with 10 answers but only ONE among them is correct. So basically im tring to build a 10 class classification problem. As most of ...
0
votes
0answers
429 views

Cannot convert between a TensorFlowLite buffer with 1392640 bytes and a Java Buffer with 4177920 bytes

I am using Tensorflow.Lite.Support function for Inference of a model that takes two input and gives output in the form of Image. The first input is an RGB image whereas the second image is a single-...
1
vote
4answers
4k views

“Pip install tensorflow” only installs version 1.14 – how to install version 2 (with eager mode enabled?)

The question is already in the title: when installing tensorflow in command line (in a virtual environment or not...), it is always tensorflow version 1.14.0 which is going to be installed. ...
1
vote
0answers
340 views

Tuning SSD Mobilenet for better performance

I'm using Tensorflow's SSD Mobilenet V2 object detection code and am so far disappointed by the results I've gotten. I'm hoping that somebody can take a look at what I've done so far and suggest how I ...
1
vote
0answers
31 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
54 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
164 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
37 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
119 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
35 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
142 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
82 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
107 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
132 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
56 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
13 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. ...
3
votes
1answer
28 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
23 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
25 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 ...
1
vote
1answer
1k 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?
3
votes
1answer
326 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
448 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
420 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
136 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
15 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 ...
2
votes
0answers
58 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 ...
2
votes
0answers
81 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
4k 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 ...
1
vote
1answer
302 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 ...
3
votes
1answer
1k views

Making predictions / Loading model 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
14 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
17 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
102 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., ...

1
5 6
7
8 9
30