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
15 views

Transfer learning with many small datasets

Context I am working on a NLP-model that can classify documents into one of N categories. I have document data from a number of different customers. The document topics are similar across customers ...
0
votes
1answer
22 views

Creating a image classification model

I am working on a dataset to classify facial expressions. Dataset has 7 classes, training images 28000 and test images 7000. I created 2 models Model1: this model has 11 layers. Initially model was ...
0
votes
1answer
10 views

How to train the model with for loop instead of the built-in epochs

i want to use a for loop for epochs instead of the built-in ones. Does these parts are similar. 1) ...
0
votes
0answers
14 views

How to structure and train an LSTM for real-time predictions in Keras?

I am trying to create an AI to play a 3D melee fighting game using an LSTM. The NN receives as input the relative positions of the enemies' joints (e.g. head, hands, legs) and should output the ...
2
votes
0answers
39 views
+100

Load numpy data from directory to keras image generator

I have two folders of hyperspectral data with five channels which are converted to numpy array. Each folder depicts the respective label. Example : ...
1
vote
0answers
7 views

How does Keras.Model() retrieve the different layers between its passed input and output layers?

I have recently been learning Keras and am trying to understand how the keras.Model function is able to interpolate the different layers between passed input and output layers. Do the input or output ...
0
votes
0answers
7 views

Keras error on concatenating a list of tensors

I'm reproducing two versions of what I believe to be the same code, but one of them works, the other doesn't: ...
0
votes
0answers
21 views

ValueError: Shapes (None, 1) and (None, 11) are incompatible when training my Sequential model [closed]

The shape of images is print("Shape of Images:",Images.shape) print("Shape of Labels:",Labels.shape) While the model is ...
0
votes
0answers
42 views

Python: ValueError: Unknown layer: Functional

model_path = './models/VGG16_res.h5' model = load_model(model_path) This is the code which I'm using to load a model TensorFlow version: 2.3.0 I'm not sure ...
0
votes
2answers
27 views

Why we need to have the test set remains consistent across multiple runs?

In the book "hands-on machine learning with scikit-learn and tensorflow: concepts, tools, and techniques to build intelligent systems" , more specifically in chapter 2 , the writer is ...
0
votes
0answers
24 views

Varitional Autoencoder not accepting batch size or validation data

The input to the VAE will be a customer vector where the index of the vector represents a product id, position i in vector x is set to one iff product id i has been purchased by the customer. For ...
0
votes
0answers
4 views

Embed Sequence API in Tensorflow

My current tensorflow version is 2.1 and I'm using low level(core) tensorflow api's. Please provide a substitute of "tf.contrib.layers.embed_sequence". I have explored a lot, but could not ...
1
vote
0answers
11 views

image regression in TF2 Keras

I am trying to figure out, how I could build a model which takes an input image of varying illuminations and outputs an image which has adjusted illuminations by a given label-image. I found out that ...
0
votes
0answers
17 views
0
votes
0answers
7 views

ValueError: Only support a single signature key

I am working on a tensorflow 2.0 project and while saving my model and attempting to convert to tensorflow lite format, I encountered this error. ...
1
vote
1answer
27 views

Object detection is not improving although loss is decreasing

I am working on a project for detecting buildings from satellite images (using OpenStreetMap data as labels) using the Tensorflow Object Detection API. I recently upgraded to Tensorflow 2 and chose ...
1
vote
3answers
32 views

Is it possible for a model with a large amount of data to perform very well and reach an extremely low cost within a single epoch?

I am working on a project to detect human awareness levels using this dataset. I preprocessed the video data as the following: Convert video to frames(taking a frame every 5 seconds. Rotate the ...
0
votes
0answers
12 views

How to prepare session based data for TFX [closed]

I wonder what is the best way to prepare session-based data for the TFX pipeline, currently, I was working with ML models which used our custom Dataset class for consuming data for training (data was ...
0
votes
0answers
6 views

How do I know when my python program can be saved as a tensorflow lite file?

I wished to create an image-captioning model using encoder-decoder architecture (https://www.tensorflow.org/tutorials/text/image_captioning) and deploy it using tensorflow lite. I need to create two ...
0
votes
0answers
16 views

Architecture for sequential data

I am seeking advice on a solution I am building as a part of my data science course. I have to build a web application that solves a problem created by COVID-19. My idea - For the first stage of my ...
-1
votes
0answers
5 views

Confusion Matrix ValueError: Found input variables with inconsistent numbers of samples: [3, 360] [migrated]

I'm trying to train a data set and output a confusion matrix after the dataset has been trained. Here is the code ...
0
votes
0answers
22 views

Tensorflow version conflict between Spyder and Anaconda-Prompt

I downloaded the TensorFlow version 1.14.0 from Anaconda Prompt. pip install tensorflow==1.14.0 When I check the version of Tensorflow from Spyder it shows like ...
0
votes
1answer
40 views

Methods to improve neural network to distinguish red from blue?

I have a lot of data where im trying to distinguish red data from blue, but all the features look like this basically (see imgur). They overlap a lot, and I can only get roc auc score of 0.65 . So ...
-2
votes
0answers
10 views

how can use some(numbers) cores of cpu from all cores, with tensorflow attributes

I'm trying to use the university server for my deep code, all CPU's core on the server is 64 but I have to use just 24 cores to everybody can use the server too...... I try to limit my CPU resource... ...
0
votes
2answers
35 views

100% accuracy on both train and test after feature engineering

The original dataset is of ~17K compound structures almost equally divided with labels indicating yes or no, after heavy use of mol2vec and rdkit I have created ~300 datapoints Using the boosted trees ...
0
votes
0answers
4 views

How to choose between variations of EfficientDet

In the Tensorflow 2 Object Detection API model ZOO, there is 7 versions of the EfficientDet: Being new to deep learning, I don't understand very well what is the difference and how to choose the best ...
1
vote
1answer
43 views

How to evenly distribute data to multiple GPUs using Keras

I am using Keras=2.3.1 with Tensorflow-gpu=2.0.0 backend. While I trained model on two RTX 2080 ti 11G GPUs, it allocates all data to '/gpu:0',and nothing changed with '/gpu:1'. Surely, the second GPU ...
0
votes
0answers
11 views

tensorflow-embedding-feature-column-with-value

Using this TF tutorial, Classify structured data with feature columns, I was interested in this Embedding columns feature. ...
2
votes
0answers
26 views

Machine-learning regression coefficients [closed]

Say I want to do supervised learning of response variable $y_k$ (continuous) and feature variables $(x_k, z_k, a_k, b_k)$ where $k$ is the sample index. Instead of learning the general form $$ y \sim ...
0
votes
0answers
3 views

what is the size of tensorflow package when I install it using pip? [migrated]

what is the size of tensorflow package when I install it using pip command?
0
votes
0answers
10 views

How to improve the Tensorflow Image Captioning model?

I'm working on the Image captioning with visual attention tutorial from Tensorflow. With a few rounds of training, the tutorial shows bad caption results (I guess the goal of the tutorial is just to ...
0
votes
0answers
7 views

TF object detection - The total number of detected objects is not increasing

I'm building a model to recognize fishes in the aquarium (150 different fishes). I'm using a faster_rcnn_inception_v2_coco_2018_01_28 model for transfer learning from TF object detection API. I have ...
0
votes
0answers
7 views

Using pre-trained Faster R-CNN models in Mask R-CNN

I am planning to use mask r-CNN from TensorFlow Object Detection API for one of my projects. When I checked the TensorFlow 1 Detection Model Zoo, I found that there is ...
0
votes
0answers
18 views

TensorFlow: Cannot save trained model (AssertionError)

My model uses pre-processed data to predict if a customer is a private or a non-private customer. The pre-processing-step is using steps like feature_column.bucketized_column(…), feature_column....
0
votes
0answers
19 views

How to interpret a regression model performances (Loss, accuracy) under keras

I built a regression model using Keras. The following parms were used: ...
1
vote
0answers
25 views

Advantages and disadvantages of using softmax/sigmoid and categorical_crossentropy/binary crossentropy for a binary classification with a CNN

I'm doing a deep learning model using tensorflow and keras. I have a question about the output architecture. I want to classify between two classes, images with defects and images without defects, I'...
1
vote
1answer
35 views

Extremely stochastic validation loss/accuracy

I am working on training DNNs on satellite data. The class distribution in the data is extremely imbalanced, so I train the neural networks using random majority undersampling to artificially balance ...
1
vote
1answer
27 views

How should I configure my Neural Network to accept a column of numpy.ndarrays as input?

I have a dataframe with 10k rows and the following columns: ...
1
vote
1answer
49 views

Deploying multiple pre-trained model (tar.gz files) on Sagemaker in a single endpoint

We have followed the following steps: Trained 5 TensorFlow models in local machine using 5 different training sets. Saved those in .h5 format. Converted those into tar.gz (Model1.tar.gz,...Model5.tar....
0
votes
1answer
29 views

Using CNN on one class only

I want to use InceptionV3 on one class of image (ie. to detect one type of object/one label only). For example, to detect 'penguin' or 'no penguin'. All my images have been cropped down to mostly ...
0
votes
1answer
51 views

Tensorflow gradient returns nan or Inf [closed]

I am trying to implement a WGAN-GP model using tensorflow and keras (for credit card fraud data from kaggle). I mostly followed the sample code that is provided in keras website and several other ...
1
vote
1answer
36 views

Keras P/R metrics at different thresholds during training

I'm training a binary classifier and I'd like to see Precision/Recall metrics at different thresholds. Tensorflow 2.3 introduced tf.keras.metrics.Precision and tf.keras.metrics.Recall which take a <...
0
votes
0answers
45 views

Class weight adjustment in multi output model error

I'm trying to make a multi output model. I have 3 regression models (reg_1, reg_2, reg_3) and one classification model (cl_1) that classifies 5 classes (0,1,2,3,4). The classification data is not ...
-2
votes
1answer
34 views

Keras layer weights shape is different compared to other conventions

I have been looking at the layers.weights output of Keras layers. The shape of the layer weight matrix is listed as ...
0
votes
0answers
15 views

Implementation of RMS prop for linear regression

I'm trying to implement linear regression using Rms Prop optimizer from scratch. Code: ...
0
votes
2answers
21 views

How can I perform weighted addition of three layers in keras?

I would like to perform the weighted addition of three outputs from different Keras layers such that the weights are trainable. How can I achieve this? I am using tensorflow 2.0 as backend for Keras.
0
votes
1answer
46 views

Returned loss value is different than the loss printed with verbose

Could someone explain why the loss returned is different than the loss printed during the evaluation? They are the same in the Tensorflow documentation https://www.tensorflow.org/guide/keras/...
0
votes
1answer
15 views

How to give a 3D Tensor as input to LSTM

I'm having X_train of shape (1400, 64, 35) and y_train of shape (1400,). I want to give X_train as input to LSTM layer and also ...
0
votes
1answer
21 views

Splitting into multiple heads — multihead self attention

So, I have a doubt in Attention is all you need: The implementation of transformers on tensorflow's official documentation says: Each multi-head attention block gets three inputs; Q (query), K (key), ...
0
votes
1answer
36 views

AttributeError: 'Functional' object has no attribute 'uses_learning_phase'

I am trying to predict on my test set and I get the following error AttributeError: 'Functional' object has no attribute 'uses_learning_phase' The model is created ...

1
2 3 4 5
32