Questions tagged [tensorflow]

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

Filter by
Sorted by
Tagged with
51
votes
9answers
29k views

Why is Python such a popular language in the AI field?

First of all, I'm a beginner studying AI and this is not an opinion oriented question or one to compare programming languages. I'm not implying that Python is the best language. But the fact is that ...
35
votes
1answer
19k views

Which library would you recommend to begin with deep learning?

Which library (TensorFlow or Keras) would you recommend for a first approach to deep learning? I'm a neuroscience student trying for the first time computational approaches, if that matters.
12
votes
3answers
11k views

What is the concept of Tensorflow Bottlenecks?

What is the concept and how does one calculate Bottleneck values? How do these values help image classification? Please explain in simple words.
11
votes
3answers
8k views

How to train a neural network for a round based board game?

I'm wondering how to train a neural network for a round based board game like, tic-tac-toe, chess, risk or any other round based game. Getting the next move by inference seems to be pretty straight ...
9
votes
4answers
8k views

How to classify data which is spiral in shape?

I have been messing around in tensorflow playground. One of the input data sets is a spiral. No matter what input parameters I choose, no matter how wide and deep the neural network I make, I cannot ...
8
votes
1answer
2k views

Meaning of evaluation metrics in Tensorflow

I am pretty much a beginner in Tensorflow and simply follow a tutorial. There is no problem with my code, but I have a question regarding the output ...
7
votes
3answers
3k views

Can neuro-evolution of augmenting topologies (NEAT) neural networks be built in TensorFlow?

I am making a machine learning program for time series data analysis and using NEAT could help the work. I started to learn TensorFlow not long ago but it seems that the computational graphs in ...
7
votes
2answers
462 views

Reinforcement Learning in Commercial Strategy Games

I'm a professional game developer investigating the potential for using reinforcement learning to build strategy game AI opponents that have more creative behavior compared to traditional techniques ...
6
votes
2answers
8k views

Can LSTM Nets be speed up by GPU?

I am training LSTM Nets with Keras on a small mobile GPU. The speed on GPU is slower then on CPU. I found some articles that say that it is hard to train LSTMs (RNNs) on GPUs because the training ...
6
votes
3answers
1k views

TensorFlow batch learning

I used the example at - https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/5_DataManagement/tensorflow_dataset_api.py - to create my own classification model. I used different ...
6
votes
1answer
183 views

Issue with simple game AI

A few months ago I made a simple game that is similar to the dinosaur game in Google Chrome - you jump over obstacles, or don't jump over levitating obstacles, and jump to collect bitcoins, which can ...
5
votes
2answers
4k views

How fast is TensorFlow compared to self written neural nets?

I made my first neural net in C++ without any libraries. It was a net to recognize numbers from the MNIST dataset. In a 784 - 784 - 10 net with sigmoid function and 5 epochs with each 60000 samples, ...
5
votes
3answers
658 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-...
5
votes
1answer
578 views

Who manufactures Google's Tensor Processing Units?

Does google manufacture TPUs? I know that google engineers are the ones responsible for the design, and that google is the one using them, but which company is responsible for the actual manufacturing ...
5
votes
0answers
125 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
2answers
432 views

Effect of batch size and number of GPUs on model accuracy

I have a data set which was split using a fixed random seed and I am going to use 80% of data for training and rest on validation. Here are my GPU and batch size configurations use ...
4
votes
2answers
1k views

How to use CNN for making predictions on non-image data?

I have a dataset which I have loaded as a data frame in Python. It consists of 21392 rows (the data instances, each row is one sample) and 1972 columns (the features). The last column i.e. column 1972 ...
4
votes
1answer
118 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 ...
4
votes
2answers
6k views

max pooling size=2,stride=1 outputs same size

While working with darkflow, I encountered something that I can't understand. I understand that maxpooling with size=2,stride=2 would decrease the output size to half of its size. However, if the ...
4
votes
2answers
664 views

Image recognition

I am looking for a solution that I can use with identifying cars. So I have a database with images of cars. About 3-4 per car. What I want to do is upload a picture to the web of car(Picture taken ...
4
votes
1answer
344 views

Identifying car model via deep learing

Is there any project or example for a software identifying cars? Situation: I got multiple angle shots in high resolution from a car. I want the algorithm to tell me "This is a Mercedes SLK" or "This ...
4
votes
1answer
2k views

How to train for own dataset really really fast while debugging

How to train darkflow for my custom object really really fast during debugging in quad core PC and without GPU? (Can I train with about 10 images and test with only those images, just to check if all ...
4
votes
1answer
728 views

Training Custom object detection network using tensor-flow object detection API?

I was just wondering if some one could provide a nice tutorial on how to use the Recent tensor-flow object detection API to train custom network say like VGG-16? (Just USE the VGG-16, VGG-19, ...
4
votes
1answer
749 views

Training a CNN from scratch over COCO dataset

I am using Tensorflow Object Detection API for training a CNN from scratch on COCO dataset. I need to use this specific configuration. There is no pre-trained model on COCO with that configuration and ...
4
votes
1answer
124 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
3answers
571 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 ...
4
votes
1answer
758 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 ...
4
votes
0answers
144 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
5answers
2k views

CNN with OpenCV

I have practiced building cnn for image classification with tensorflow, luckily to me they have very good library documentation and tutorials. But i found that tensorflow is too complicated, building ...
3
votes
1answer
53 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 ...
3
votes
1answer
738 views

How to detect LEGO bricks by using a deep learning approach?

In my thesis I dealt with the question how a computer can recognize LEGO bricks. With multiple object detection, I chose a deep learning approach. I also looked at an existing training set of LEGO ...
3
votes
1answer
106 views

Are there independent evaluations of various major AI platforms?

Has anyone had a chance to tinker with multiple major AI platforms such as TensorFlow, Cognitive Talk, Quill etc... What are the strengths and weaknesses of different AI platforms? Comprehensive ...
3
votes
1answer
90 views

Which model should I use to determine the similarity between predefined sentences and new sentences?

The Levenshtein algorithm and some ratio and proportion may handle this use case. Based on the pre-defined sequence of statements, such as "I have a dog", "I own a car" and many more, I must ...
3
votes
1answer
163 views

What exactly does “channel” refer to in tensorflow/lucid?

Tensorflow/Lucid is able to visualize what a "channel" of a layer of a neural network (image recognition, Inception-v1) responds to. Even after studying the tutorial, the source code, the three ...
3
votes
1answer
1k views

Detecting license plate using tensorflow

I'm currently working on license plate recognition. My system consist of 2 stage: (1) License Plate region extraction & (2) License Plate region recognition. I'm doing (1) with Raspberry pi 3 ...
3
votes
2answers
882 views

What layers to use in a Neural Network for card game

I am currently writing an engine to play a card game and I would like for an ANN to learn how to play the game. The game is currently playable, and I believe for this game a deep-recurrent-Q-network ...
3
votes
1answer
33 views

Artificial intelligence services at the edge

I am a strategy consultant, deeply interested in edge computing and distributed and decentralized systems. In performing some analysis on current edge offerings, I am curious as to how ML and AI ...
3
votes
1answer
109 views

Programming an inference AI that computes the best outcomes like a quantum computer

I bought an Intel Movidius Neural Compute stick a few weeks ago. Even though I can use it with the examples, I want to actually use it for something! The documentation is messy, and hard to work ...
3
votes
1answer
391 views

Is there ever a need to combine deep learning frameworks? (Eg. Tensorflow & Torch)?

Imagine a simple scenario of having a large repository using one framework and integrated with data/robots/etc, then having a new feature requested and the framework missing some vital functionality ...
3
votes
1answer
43 views

Why do we average gradients and not loss in distributed training?

I'm running some distributed trainings in Tensorflow with Horovod. It runs training separately on multiple workers, each of which uses the same weights and does forward pass on unique data. Computed ...
3
votes
1answer
60 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. ...
3
votes
0answers
160 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
1answer
997 views

Seq2Seq dialogs predicts only most common words like `you` after couple of epoches

I'm training Seq2Seq model on OpenSubtitles dialogs - Cornell-Movie-Dialogs-Corpus. My work based on the following papers (but currently I'm not implemented Attention yet): Sequence to Sequence ...
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
3answers
329 views

How to reproduce neural network training with keras

I want to see the effects of changing some training parameters (batch size, learning rate, optimizer...) to the accuracy obtained. The problem is that with the same parameters I get significantlly ...
2
votes
1answer
66 views

What are the differences between TensorFlow and PyTorch?

What are the differences between TensorFlow and PyTorch, both in terms of performance and functionality?
2
votes
2answers
45 views

Why does the bias need to be a vector in a neural network?

I am learning to use tensorflow.js. I am also using the tfvis library to print information about the neural net to the web browser. When I create a create a dense neural net with a layer with 5 ...
2
votes
1answer
47 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 ...
2
votes
2answers
605 views

How to implement word2vec using Tensorflow 2.0 keras API?

Since Keras API as defined as layers, how would it be used to implement the word2vec?
2
votes
1answer
55 views

Testing, Validation Percentage & Test, Validation Batch Size Difference?

I'm doing transfer learning using Inception on Tensorflow. The code that I used for training is https://raw.githubusercontent.com/tensorflow/hub/master/examples/image_retraining/retrain.py If you ...