Questions tagged [tensorflow]

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

89 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
123 views

How to design 4D Deep Recurrent Neural Networks using Tensorflow?

I want to design a simple model that predicts the movement of coordinates with RNNs. In a typical three-dimensional LSTM model, one feature is encoded as one hot encoding, and the ...
4
votes
1answer
47 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 ...
4
votes
0answers
141 views

Game AI - Modify image classification model for analog output

I'm developing a Game AI which tries to master racing simulation. I already trained a CNN (alexnet) on ingame footage of me playing the game and the pressed keys as the target. I had two main issues ...
3
votes
0answers
112 views

YOLO v3 complete architecture

I am attempting to implement YOLO v3 in Tensorflow-Keras from scratch, with the aim of training my own model on a custom dataset. By that, I mean without using pretrained weights. I have gone through ...
3
votes
3answers
452 views

How to implement a Continuous Control of a quadruped robot with Deep Reinforcement Learning in Pybullet and OpenAI Gym?

Description I have designed this robot in URDF format and its environment in pybullet. Each leg has a minimum and maximum value of movement. What reinforcement algorithm will be best to create a ...
3
votes
1answer
700 views

How do you handle multiple categorical values in a single column for wide_deep model in tensorflow?

To start, let me just say that I am very new to tensorflow and Machine Learning in general. But, as part of my learning project I am trying to adapt the tensorflow wide and deep model to generate ...
3
votes
1answer
109 views

If neurons are only defined for values between 0 and 1, how does ReLU differ from the identity?

I'm struggling to understand the underlying mechanics of CNNs so any help is appreciated. I have a network with a ReLU activation function which does perform signifigantly better than one with sigmoid....
2
votes
0answers
52 views

How can I increase the speed and performance of my implementation of an AI for Reversi?

I made an AI for Reversi, aka Othello (8×8), like Alpha Zero, using this book. This book is written in Japanese. The source code of the AI I implemented can be found in this Github repository. There ...
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: ...
2
votes
0answers
140 views

Why the loss keep increasing during training?

I'm trying to use TensorFlow and this how I compute the loss ...
2
votes
0answers
77 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, ...
2
votes
0answers
22 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 ...
2
votes
0answers
16 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 ...
2
votes
0answers
40 views

RNN: Different test results on balanced and unbalanced data

I trained a recurrent neural network (if it matters - it contains three CuDNNLSTM cells and 3 Dense layers, Dropout = 0.2). The result of data preparation is one array of ~330.000 sequences. Each ...
2
votes
0answers
219 views

How many episodes does it take for a vanilla one-step actor-critic agent to master the OpenAI BipedalWalker-v2 problem?

I'm trying to solve the OpenAI BipedalWalker-v2 by using a one-step actor-critic agent. I'm implementing the solution using python and tensorflow. I'm following this pseudo-code taken from the book ...
2
votes
0answers
22 views

Using two generative adversarial nets to classify articles - what is a good approach?

I'm trying to create a deep learning network to classify news article based on the text and associated image. The idea comes from a novel use of GANs to classify based on generated data. My approach ...
2
votes
0answers
428 views

Getting worse performance when training a pre-trained model with the existing class

I am training pre-trained SSD-InceptionV2-Coco to detect the "car", which is one of the classes in mscoco label. I train the model with ~50k sample from KITTI, 500k iteration with batch size 2. I ...
2
votes
0answers
134 views

How to measure times on TensorFlow Slim?

I would like to measure time for forward and backward times on TF-Slim (over all network and per-layer) like caffe does. However, it just logs the step/iteration time, and I have no idea of how to do ...
2
votes
0answers
133 views

Wide & Deep Learning Explanation

I was going through "Wide & Deep Learning" tensorflow tutorial & it's quite simply explained the process. But I missed few of the things. If someone can please explain them to me, it will be ...
2
votes
0answers
522 views

3D - CNN. Why my cost function decreases, but the accuracy does not increase?

I'm implementing a C3D-inspired neural network for human emotion recognition, the problem I'm facing is that altough the cost function is decreasing, for both training and validation sets, I do not ...
1
vote
0answers
25 views

How should I make output layer of my neural network so that I can get outputs ranging from [-20,-1]

I am trying to make a neural network which takes in 0 and 1 as it's input and should give me output ranging from [-20,-1].I am using three layers with sigmoid as the activation function .How should I ...
1
vote
0answers
19 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 ...
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
0answers
11 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
1answer
52 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 ...
1
vote
0answers
111 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 ...
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 ...
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
0answers
65 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
22 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 ...
1
vote
0answers
70 views

How are the attention weights normalised in the transformer?

In the Transformer (adopted in BERT), we normalize the attention weights (dot product of keys and queries) using a softmax in the Scaled Dot-Product mechanism. It is unclear to me whether this ...
1
vote
1answer
160 views

How do I integrate Tensorflow with EV3DEV?

I've got a Lego Mindstorms EV3 with EV3DEV and EV3-Python installed. I wanted to try out artificial intelligence with the robot, and my first project is going to be to get the robot to try and ...
1
vote
0answers
33 views

DQN not able to learn in a game where other agents perform random walks

I am making a school project where I should develop any kind of game where I can have one reactive agent and one agent based on machine learning competing with each other. My game consists of a ...
1
vote
0answers
31 views

how to add the pool4 to the 2 x conv7 in FCN-16s using keras?

Now I'm using tensorflow.keras to implement the FCN-16s, this picture may be different with others, you should focus this it add ...
1
vote
0answers
24 views

Kera's (normal) LSTM uses the GPU?

I'm running Kera's LSTM (not CuDNNLSTM) but I notice my GPU is under load. I need recurrent dropout, so I can only stick with <...
1
vote
0answers
93 views

Tensorflow : Inception V3 Transfer Learning Parameter Tuning

Sorry if my question is at the wrong place, I'm new in this community. So, I have dataset with total of 1 million images (augmented) that separated in 28 classes. I followed this tutorial https://www....
1
vote
1answer
149 views

Should I apply ReLU to non negative output?

Suppose I want to predict the position of a sensor based on its reading. I can first predict the unit vector and predict the distance to be multiplied to this vector. And I know that distance will ...
1
vote
0answers
25 views

Evaluating Utility of Incremental RAM

The Nvidia 2080 GPUs command a $500 premium for 3GB of incremental RAM (8GB -> 11GB). What are the relevant questions and thought process to determine the incremental improvement by moving from the ...
1
vote
0answers
26 views

Sequence to sequence machine learning / NMT - converting numbers into words

I want to do some sequence to sequence modelling on source data that looks like this: /-0.013428/-0.124969/-0.13435/0.008087/-0.269241/-0.36849/ with target data ...
1
vote
0answers
85 views

How will AlphaGo be implemented in Tensorflow.js?

AlphaGo is eventually going to be implemented in Tensorflow.js. How to tackle the change of functionality that the new JavaScript language will bring?
1
vote
0answers
220 views

How To Improve This Sentiment Analysis Model

A.I Community, this is my first post on here I am currently reading, learning and designing models. At the moment I'm working on this sentiment analysis tool; from what I gather sentiment analysis can ...
1
vote
0answers
48 views

How to create a task-graph based neural network?

I'm trying to design a neural network with a task hierarchy. This is my idea so far: ...
1
vote
0answers
198 views

How to set Stride,Filter size in Tensorflow for 1-D signals?

I am trying to implement CNN using tensorflow on temporal accelrometer signal. I have signal values segmented on every 10ms (200 samples). I want to perform 1-D convolution (...
1
vote
0answers
123 views

My network does always predict always the first right class

I trained my model ResNet-50 for UCMerced_LandUse dataset and this my loss graph but I have a problem when I try my first picture ...
1
vote
0answers
145 views

Trajectory classification using RNN

The problem: I want to classify a trajectory if it has some properties, for example I want to create a simple 0/1 classifier for circular trajectories. If a target is moving in a circular trajectory ...
1
vote
0answers
221 views

Transfer learning from model trained in a similar dataset

I am currently working on a defect detection algorithm but I only have a few samples of defects.I googled for defect detection datasets and I found this one: http://resources.mpi-inf.mpg.de/...
1
vote
0answers
250 views

Tensorflow: Can't overfit training data with batch size > 1

I coded a small RNN network with Tensorflow to return the total energy consumption given some parameters. There seem to be a problem in my code. It can't overfit the training data when I use a batch ...
1
vote
0answers
43 views

Regarding Tensorflow: How to Avoid Duplicate Use of Scope/Variable_names

I am trying to train Chess data through CNN. To proceed reinforcement learning, I had divided into two - "current network" and "reinforcement network". For each checkpoint file stored in different ...
1
vote
0answers
708 views

Object detection in video

I have a video which is capture from a moving car and video showing plenty of details like pools, human, cars/buses, roads, etc, etc. The video I am playing in unity3d and camera Showing that video ...
1
vote
0answers
91 views

Categorical Variable Reduction using NN

I was trying to categorical variable engineering following this paper. The code is the following: ...