The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
144 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
45 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
96 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
22 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
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 ...
0
votes
0answers
22 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,...
0
votes
0answers
50 views

About the Softmax in the Transformer / BERT

In the Transformer (adapted 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
votes
1answer
45 views

Error using Keras clear_session while multiple calibration

I am working through the tutorial here. I just cleaned up the code for myself but other than that code is as in original tutorial. I am using the pollution data from the following link When I try to ...
1
vote
1answer
116 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 ...
0
votes
1answer
77 views

Artifacts After pruning Unet CNN

Im trying to make a dark image brighter using CNN-UNet arcitecture. When I train the network I get the following results: When I cut the features in half for pruning, and do full train again, I get ...
1
vote
0answers
32 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 ...
0
votes
1answer
26 views

Changing the batch, mini-batch and learning rate for a previously-trained model

If I'd previously trained a model and saved the whole training session (using TensorFlow tf.train.Saver.save()), and then later restored the session (using ...
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
1answer
410 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 ...
1
vote
0answers
28 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
1answer
39 views

How do I normalise/un-normalise data when loading a model?

I am following this TensorFlow JS tutorial where you load car data. The data looks like this: [{x:100, y:20}, {x:80, y:33}] X is the horsepower of a car, Y is ...
1
vote
1answer
162 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?
3
votes
0answers
83 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 ...
0
votes
0answers
29 views

How to limit actions based on a state [duplicate]

I'm trying to implement DQN using tf-agents for simple environment. So far I have ...
0
votes
0answers
15 views

Controlling number of channels in weight/kernel in tensorflow

To implement a specific function, I need "input_channels" number of kernels in my layer, each having only a single channel depth, and not depth = "input_channels". I need to convolve one kernel with ...
0
votes
0answers
171 views

Neural Network Regression predicting negative values

I am training a model using the DNN Regressor estimator from the Tensorflow API to predict prices based on 1035 features. My dataset contains a little over 500 millions inputs and none of the target ...
0
votes
0answers
17 views

How to serve a deep q network using tensorflow serving?

How to Serve a Deep Q Network using Tensorflow Serving. I have built a Deep Q Network using Multilayer Perceptron. Is it possible to serve it?
0
votes
0answers
20 views

Loading multiple trained models for use in multi-agent environment

I have an agent that will play in a multi-agent environment, and I'd like that agent to play against other agents that have been previously trained. The model for each agent was saved using ...
0
votes
0answers
91 views

Selu and how to implement it?

I just came accros the "Selu" function. It looks promising, especially with the header "self normalizing neural network", since I have some serious with exploding gradient within my network with (...
0
votes
0answers
43 views

How do I apply batch normalization to my algorithm?

I am working lately on batch normalization for the last couple of days, but I just can't seem to solve it on how to apply it. So, to give the full code to you, I will just send the implementation. ...
0
votes
1answer
280 views

Getting NaN from A3C PPO model [closed]

I've pieced together this A3C w/ PPO Gym Pendulum example, but I'm finding after a while, when attempting to get the action from the model, I get a NaN return: ...
0
votes
0answers
31 views

Adding features in TensorFlow playground

I am trying to solve the spiral exercise in TensorFlow but I can not add features like in this answer https://ai.stackexchange.com/a/10000/22691. How can I do that?
3
votes
2answers
693 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 ...
2
votes
1answer
39 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 ...
0
votes
0answers
19 views

How to remove unwanted signals from the sensor measurement?

I have 2 tabular datasets, one is clean and one is drifted. They are records of sensor measurements. I move the sensor around in the room and collected thousands of measurements. I have a sensor that ...
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
84 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
53 views

How do I make AI based object picker?

I want to develop an AI based object (mainly toy) picker that can clean my kid's room and put toys in toy basket. Can somebody help me how to acheive this? I want to make a custom solution so that it ...
3
votes
1answer
30 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
3answers
405 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 ...
1
vote
2answers
226 views

I need to predict ball position from set of Images

I am a novice developer in AI. Any help appropriated. I have a set of images and from that I want to predict position(x,y co-ordinates) of the Ball. Thanks in advance.
1
vote
1answer
144 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
votes
2answers
86 views

How TensorFlow will know if the prediction is true or false?

I'm completely new at ML, but really interested. To be honest, read many articles about it, but still don't understand the workings of it. I just started to understand this example: https://storage....
0
votes
1answer
69 views

How can I oppose two AI agents with keras / tensoflow?

I am trying to use tensorflow / keras to play a text based game. The game opposes two players that play by answering questions by choosing an answer among the proposed ones. Game resembles this: ...
0
votes
1answer
38 views

Classification of books by their cover page

I am classifying about 9 books from the image of their cover pages. I am using a TensorFlow Keras CNN model for this. But, the model predicts a book even when a picture of a book is not taken, like a ...
1
vote
1answer
50 views

How to solve the AttributeError: 'Ssd' object has no attribute 'freeze_batchnorm' [closed]

I use a modified training script for modeling images with Tensorflow/Keras/Mobilenet_V2. After a few errors that I could solve I now get the following error: ...
1
vote
1answer
154 views

What should a good loss curve look like?

This is a very basic question. I'm running a faster rcnn trainer on a dataset for object recognition. My images range from 200x200 to 7360x4912 in resolution. There are only 2 classes being trained (...
1
vote
1answer
320 views

Continuous Advantage Actor Critic Implementation

I'm having trouble implementing AC for continuous action space. As far as I can tell, my code doesn't seem to have any bugs! The agent is learning "something" as its behaviour seems to vary ...
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 ...