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

Which technique should I use for the given scenario?

I've a list of numbers(say A) , I want to find out how closely related another list of numbers(say B) is to A. By close relation, I mean B should follow the same trend as A , I want to show the ...
1
vote
1answer
5 views

Difference between grayscaled and binary mnist dataset

When making a cnn you could use the classic mnist dataset containing grayscale images. I am considering transforming them to simple binary images instead, the questions is should i? It will be much ...
0
votes
0answers
16 views

How do I solve a “TypeError: __array__() takes 1 positional argument but 2 were given” Keras error?

I am trying to build a multi-input CNN using Keras/Tensorflow. I have 5000 'smile' training inputs which are 1D arrays (shape = (100,)). These inputs have a maximum length of 100. I have 5000 'protein'...
0
votes
0answers
7 views

How to write a generator to fine-tune transformer based models (Tensorflow)

I have been trying to write a generator for DistillBertFast model ...
0
votes
0answers
32 views

How deep learning extracts the features from images in image classification?

I'm working on an image classification project. I just want to know some basic level clarification. how does a neural network learn only the relevant features based on the label? Let's say I'm ...
1
vote
0answers
13 views

Can Darknet be Integrated with Tensorflow and tfx?

Tensorflow and Darknet are deep learning frameworks that work and are configured. Can Darknet be Integrated differently? Is there any framework or way to integrate Darknet within a tfx pipeline, for ...
0
votes
1answer
12 views

How to walk forward an LSTM autoencoder by n timesteps?

I am able to fit this autoencoder to my sequence in order to reconstruct it. However, how would I be able to walk this forward 3 timesteps to get [[11.0], [12.0], [13.0]]? ...
0
votes
0answers
9 views

How to solve incompatibility between DeepPavlov, Tensorflow and Numpy in a Python script?

I am trying to run a script in Python 3.7 that makes use of DeepPavlov and Tensorflow==2.4.1. It seems that there is an incompatibility, because: DeepPavlov can work only with Numpy==1.18 Tensorflow==...
0
votes
1answer
12 views

Incompatible shapes (None, 1) and (None, 5) with Keras VGGFace Finetuning

Categories to learn and predict: df.race.unique() array(['0', '1', '3', '2', '4'], dtype=object) Data: ...
0
votes
1answer
22 views

What is the fastest way to run predictions on a big dataset using pandas, numpy and keras?

I am a bit new to the field of data science and could really use some help. I used a natural language dictionary to train and test an ml model using keras and tensorflow. It detects the sentiments in ...
0
votes
0answers
8 views

How to create Tensorflow data ingestion pipeline for multiple related CSVs?

Let us say we have some Relational data. Making a simple example for a retail store chain: Dataset 1 --> Store_id, Daily_sales Dataset 2 --> Customer_id, store_id, Time in, Time out Let us say ...
0
votes
0answers
10 views

ValueError: Invalid axis: ListWrapper([64]) [closed]

I was trying to implement the resnet50 model from scratch and this is my attempt. Defining the resnet block : ...
0
votes
0answers
41 views

ValueError: The first argument to `Layer.call` must always be passed [closed]

I was trying to implement the inception model, using Tensorflow with the functional API. And I got stuck in this error, so i would be grateful if anyone could help. Btw when using conv2D layers with ...
0
votes
0answers
10 views

LSTM internals: How does an LSTM handle dimension reduction?

I trained a Bidirectional LSTM of width 384 which took in an input of dimension (None, 4995, 12), using Tensorflow/Keras. I've been trying to understand how my input dimension is mapped to the $x_t$ ...
0
votes
0answers
8 views

Conversion of tensor shape values to None in a keras model

Suppose I have a simple keras model as follows, ...
0
votes
0answers
11 views

How to evaluate the performance of CNN model when val_acc changes everytime I ran the code?

I have a CNN model and am trying different feature extraction techniques on my data and passing it to my CNN model in TensorFlow. Let's say I chose SIFT as my feature extraction technique and trained ...
0
votes
0answers
13 views

Why model.add is showing “Could not compute output KerasTensor”

So, I have 3 models, say A,B and C. so, say a_input= b_outpur and b_input= a_output. c_input= (a_input+b_input) Now, I want to add A to C to make a model, and again B to C to make another model. But, ...
1
vote
0answers
10 views

Deep learning model is giving strange metrics

I am trying to build a deep learning model for automatic short answer scoring using TensorFlow. I am using this dataset: https://www.kaggle.com/c/asap-sas/data I am trying to build a model that suits ...
0
votes
0answers
10 views

Why does model CNN with high accuracy but give low prediction on handwriting input images?

I'm trying to train the CNN model with the MNIST dataset expand with my own images handwriting, so I have merged them together, ...
1
vote
1answer
15 views

An universal sentence encoder for a specific language?

I am making a model that uses encoded articles (multiple sentences). I have found the Universal Sentence Encoder by Tensorflow, but it says it is only for English. Specifically, I am looking for an ...
0
votes
0answers
10 views

encoding 100,000s of sparse, binary features at each time step of RNN

I’m looking for some pointers on efficiency. I have potentially 100,000s of binary variables that i wish to encode in each time step of an RNN for binary classification of the entire sequence, but I ...
0
votes
0answers
14 views

How to use Tensorflow Recommenders' Retrieval task with Keras data generators

I've recently started working with the package to build recommender systems, and so far, I've successfully built a Ranking task that takes the inputs from a Keras Data Generator. However, I could not ...
0
votes
0answers
10 views

Tensorflow Training Crashing

I have created a GCP VM with Tesla K80 GPU attached to it. I have installed Nvidia 465 drivers for Ubuntu 20.04 along with Cuda 11. I am trying to use tensorflow on the GCP machine and each time when ...
1
vote
1answer
26 views

CNN: visualize a model using its description

i created a Resnet model, which i want to show in a presentation, but i don't know how to visualize what i have done? Is there a tool or something to get a graphic from the description of my model. ...
0
votes
1answer
34 views

CNN: training accuracy vs. validation accuracy

I just finished training two models, while the one is pretrained and the other trained from scratch and created two diagrams afterward with their data, but as I am very new to machine learning, I don'...
0
votes
0answers
15 views

Pruning Model Weights in Tensorflow 2

I am currently trying out things with the Tensorflow model optimization library with the goal of reducing the sizes of models that are run in our production Tesnorflow Serving containers. This project ...
-1
votes
1answer
24 views

How to read .pb file using Google Colab? [closed]

I would like to know how we can see/load/read a .pb file in Google Colab? Thank you.
2
votes
0answers
24 views
+100

Distributed training with low level Tensorflow API

I am working on low level Tensorflow code for my model training. When I say low level it means I'm defining the tf.Session() object of the graph and evaluate graph ...
1
vote
0answers
13 views

Horovod vs tf.mirror.strategy

I am exploring the distributed computing using Horovod and Tensorflow.mirror.strategy. I have a machine which has two GPU's. Using the basic mnist code(provided in tf documents), I tried to utilize ...
0
votes
0answers
9 views

Large gap between validation_accuracy and validation_binary_accuracy in Keras

I am building a convolutional neural network in Keras to try to predict binary classification of some text sequences. ...
0
votes
1answer
47 views

LSTM for regression in time and space

I am trying to implement my first LSTM for a supervised regression problem. The data is in the following format: every row has month, day and hour in three separate columns, other 10 predictive ...
0
votes
0answers
22 views

How to improve the performance of an object detector model?

I have few questions regarding improving the performance of my object detection model. When there is color match between person uniform and the background, it becomes difficult for my model to ...
0
votes
0answers
19 views

Regression with tensorflow

I am trying to train a tensorflow model for regression analysis using this tutorial: https://www.tensorflow.org/tutorials/keras/regression. My dataset is this: ...
1
vote
0answers
24 views

CNN + LSTM model for images performs poorly on validation data set

My training and loss curves look like below and yes, similar graphs have received comments like "Classic overfitting" and I get it. My model looks like below, ...
0
votes
1answer
30 views

Why trainable parameters are not considered right?

I have tested the "ResNet" block and it works fine, but when I call it in the model class, it somehow it does not work properly? Is it related to the model definition?
1
vote
0answers
27 views

[Guidance Needed]Research in data science [closed]

IMAGINE You're a research intern and you're an undergraduate student. Have some experience in data science and now new to research. Your task is to conduct research on vision transformers. Oh and by ...
0
votes
1answer
29 views

Why is my neural language model performing so poorly?

I am trying to create a word-level Haiku generator using an LSTM neural network. I am scraping haikus from Reddit's r/haiku, and wanted to start with a "simple" model: my training data is ...
0
votes
1answer
26 views

Does Mixup requires two loss functions?

I created a neural network with multi-label classification using MSE. Now, I would like to use Mixup. Do I need two loss functions (for each target one) or is the result the same if I just combine the ...
0
votes
0answers
33 views

Transformer: English -> Source Code Training Accuracy stuck 60% and validation 40%

I'm working on my final year project which is to write a model that takes as an input an english sentence and generate source code (currently testing on english->javascript dataset provided by ...
0
votes
0answers
24 views

Iterating over trained Tensorflow models

I have a loop that looks like this ...
0
votes
0answers
9 views

Predictions become random after loading a custom saved Keras model?

I did not found a conclusive answer for this problem so I am posting it here. I created a Keras model with custom layers and trained it on a classification task at which it achieves a completely ...
1
vote
0answers
6 views

Workaround / fallback value for tfp.distributions.Categorical.log_prob in tensorflow graph mode

Is there a way to avoid tfp.distributions.Categorical.log_probraising an error if the input is a label out of range? I am passing a batch of samples to the ...
0
votes
0answers
14 views

How much time do I need for Hyperband tuning?

I'm using the Hyperband algorithm (Paper, Keras Docs) to tune my model. I've read the paper, but I still don't understand one simple thing. Is there a simple formula to estimate the time the tuner ...
0
votes
1answer
20 views

In U-Net, is there a non-linearity (relu) in up-convolution layer?

I am doing semantic segmentatio using U-Net. I was wondering whether to include 'relu' activation or not in the up-convolution layer? ...
0
votes
0answers
5 views

Model divergence in a pytorch TD3 implementation converted to tensorflow

Based on this implementation of TD3, I converted different torch-based methods to their tensorflow equivalents. No matter what hyperparameters I use, torch's version will start converging by 50,000 - ...
0
votes
0answers
9 views

tf.data.Dataset object and DataGenerator class with same output yield different training results

This week I converted my old datagenerator for audio to the new(ish) tf.data.Dataset api. The dataset object seems to be working properly and when tested yields identical data, in the same order, as ...
1
vote
0answers
11 views

How to construct a graph using Neural Structured Learning framework?

My dataset (both features and label) consists of continuous variables. Dimension of features is (12,). The number of samples are of 7th order of magnitude (about 11 ...
1
vote
0answers
24 views

Is there a dataset that can predict duration to complete a task using task description? [closed]

I am working on a problem where the task is to predict how long will it take to complete a given task using just the description as a feature set. The description is something like "pick up X and ...
1
vote
0answers
20 views

Really Bad Predictions while using LSTM (tensorflow)

I am trying to fit a LSTM network on path-dependent input-output data (basically strains-stresses from elastoplastic behaviour). I took 14 different paths of input - output data and trained an LSTM ...

1
2 3 4 5
37