Questions tagged [tensorflow]

For questions related to Google's open source library for machine learning and machine intelligence.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 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
22 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
38 views

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

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
22 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 ...
4
votes
0answers
19 views

Transformer: Position-wise Feed-Forward network

The Transformer model introduced in "Attention is all you need" by Vaswani et al. incorporates a so-called position-wise feed-forward network (FFN): In addition to attention sub-layers, each of the ...
2
votes
0answers
11 views

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

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
24 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
6 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
28 views

Python ERROR: No matching distribution found for tensorflow [on hold]

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 ...
2
votes
1answer
76 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
29 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
9 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
37 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
36 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
48 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
57 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
84 views

Accuracy too high too fast?

I have a simple text classifier, with the following structure: ...
2
votes
1answer
38 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
48 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
170 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
15 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 ...
1
vote
1answer
27 views

Is “dataset size” and “model size” same thing?

I mean what is determine my model size, connection amount between layers and neurons, or size of my dataset?
0
votes
1answer
17 views

Create optimizer object using the tf.keras.optimizers.get function

I am trying to have the type of optimizer as a variable in the hyperparameter tuning phase. For that reason I am trying to use the tf.keras.optimizer.get function ...
0
votes
0answers
15 views

Suggestions for Deep Learning for regression on huge 3D volumes

I have a dataset of 3D images (volumes) with dimensions 400x250x400. For each input image I have an output of the same dimensions. I would like to train a machine learning (or deep learning) model on ...
1
vote
0answers
34 views

How do I create a chatbot using tensorflow or pytorch using like the one defined in dialogflow?

How do I create a chatbot using TensorFlow or PyTorch using like the one defined in DialogFlow? What are the best datasets that I can use so to create my own personal assistant like google assistant? ...
1
vote
0answers
38 views

Has anyone been able to solve OpenAI's hardcore bipedal walker with their implementation of DDPG?

As the question suggests, I'm trying to see if I can solve OpenAI's hardcore version of their gym's bipedal walker using OpenAI's DDPG algorithm. Below is a performance graph from my latest attempt, ...
0
votes
1answer
123 views

Why is this simple neural network not training?

I have created a Tf.Sequential model which outputs 1 for numbers bigger then 5 and 0 otherwise: ...
0
votes
0answers
6 views

How does one in practice pick the dimensions to mask in RealNVP or similar methods?

For example see https://www.tensorflow.org/probability/api_docs/python/tfp/bijectors/RealNVP Basically, if you have a multi-scale problem and you think the coordinates for the scaling are embedding ...
0
votes
1answer
16 views

Is a trained model in keras is saved with the weights for max accuracy?

Does a model trained in keras (tensorflow backend) saves the weights with max accuracy and minimum losses or does it simply saves the weights from the last epoch? If it is the latter then how do I ...
0
votes
0answers
9 views

When should I stop the object detection model training while mAP are not stable?

I am re-training the SSD MobileNet with 900 images from the Berkeley Deep Drive dataset, and eval towards 100 images from that dataset. The problem is that after ...
0
votes
1answer
37 views

Why does keras model get bigger after training?

I notice that I create a model using tensorflow.keras.Sequential(), save it and the file size is around 5 MiB, but after I call ...
0
votes
1answer
52 views

Is there a place where I can read or watch to get an accurate TensorFlow code wise explanation?

I have a piece of code and I don't seem to really understand it but I'd love to get a source/link/material that would help me understand the basic functions in TensorFlow. Are there any recommended ...
0
votes
1answer
30 views

Is there a simple way of classifying images of size differing from the input of existing image classifiers?

Most image classifiers like Inception-v3 accept images of about size 299 x 299 x 3 as input. In this particular case, I cannot resize the image and lose resolution. Is there an easy solution of ...
0
votes
0answers
112 views

Applying a 1D convolution for 4D input

i'm trying to implement this paper and I'm stuck for quite some time now. Here is the issue: I have a 3D tensor and has (180,200,20) as dimension and I'm trying ...
-1
votes
1answer
64 views

Which is better to start deep learning and understand it in depth (and not just a simple overview) - pytorch or tensorflow 2.0?

I am beginning to learn deep learning. I recently spoke with an expert in the field. He suggested that I start with pytorch because of these reasons: Keras abstracts the stuff a lot that we will not ...
1
vote
1answer
40 views

How does the CTC loss work?

I am trying to implement CTC loss in Tensorflow, but their documentation is pretty limited. So I am not sure how to approach the problem. I found a good example in Theano: https://github.com/...
2
votes
0answers
21 views

How to voxelize multiple frames at the time and append them together?

I'm trying to implement this approach for object detection and tracking. In this approach, the first step is voxelize each frame to construct a 3D tensor, the second step is to append multiple voxels ...
0
votes
0answers
17 views

Dynamic frames processing with CNN LSTM combination or otherwise

I have a unique implementation where I have to process videos with dynamic frame rates (that is the number of frames is different for each video in a batch). I am stacking all the frames in a single ...
-2
votes
1answer
77 views

Problem over DQN Algorithm not converging on snake

I'm using a DQN Algorithm to play Snake. The input of the neural network is a stack of 4 images taken from the games 80x80. The output is an array of 4 values, one for every direction. The problem ...
0
votes
0answers
20 views

How to use TensorFlow with hyperparameter tuning to optimize parameters for a robot simulator

I am trying to implement a DNN to optimize a set of 7 parameters that are used in a robot swarm simulator on the ARGoS platform. the program is a compiled C++ executable that reads the parameters from ...
0
votes
1answer
24 views

Intermittent type error when operating CNN inside Docker container

I've been working on a simple computer vision API with a few endpoints for grabbing useful information from ebay images. The API lives in a docker container that looks for the h5 files, downloads ...
0
votes
1answer
31 views

Why feeding the correct output as input during training of seq2seq models?

So, I've read about seq2seq for time-series and it seemed really promising, but when I went to implement it, all the tutorial I've found use the correct output as input to the decoder phase during ...
1
vote
1answer
40 views

Do I need to use a pre-processed dataset to classify comments?

I want to use Machine Learning for text classification, more precisely, I want to determine whether a text (or comment) is positive or negative. I can download a dataset with 120 million comments. I ...
2
votes
0answers
14 views

In addition to matrix algebra, can GPU's also handle the various Kernel functions for Neural Networks?

I've read a number of articles on how GPUs can speed up matrix algebra calculations, but I'm wondering how calculations are performed when one uses various kernel functions in a neural network. If ...
0
votes
0answers
21 views

Multiple embedding layers?

How would one go about inputting multiple high dimensionality categorical columns using TensorFlow's Embedding Feature Columns? Does that even make sense to do? For example: for a car price predictor,...