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
1 vote
1 answer
9 views

What is the architecture of ssd_mobilenet_v2_fpnlite_640x640?

What is the architecture of ssd_mobilenet_v2_fpnlite_640x640, which is a model available on TensorFlow model zoo. If my understanding is correct, mobilenet is used for feature extraction , while SSD ...
  • 13
0 votes
1 answer
5 views

Using TPU without GCS

Is there a way to use TPU in Colab/Kaggle notebook without hosting your dataset on a GCS bucket? Does Google/Kaggle provide that functionality yet? P.S.: I am using TensorFlow v2.4.1
0 votes
0 answers
13 views

How to best train a CNN with longitude/latitude output

Problem I am new to CNNs and I'm starting off with a geolocation problem where the input is an image and the output should be a longitude value and a latitude value. I am unsure of the best way to ...
0 votes
1 answer
11 views

Difference between class_weight and loss_weights arguments in TensorFlow/Keras

I am creating a neural network using TensorFlow (v2.9.2) for an imbalanced image dataset. While doing so, I noticed that model.compile() method has an argument <...
0 votes
3 answers
25 views
+50

Does decreasing the 'tflite_max_detections' variable in TFLite have any positive effect?

I'm currently training my own object detection TFLite model using the TFLite model maker. Theres a variable you can set called 'tflite_max_detections', which is by default set to 25. Does anyone know ...
0 votes
1 answer
18 views

Downloaded Vertex AI automl model , can't convert to h5 file

This question is also on main SO. I saw on meta it's fine to ask on two forums I downloaded from the bucket my VertexAI AutoML, this is how it looks: When I try: ...
  • 11
2 votes
1 answer
116 views

Accuracy vs Categorical Accuracy

I was running a DNN model that uses ResNet50 for Transfer Learning. While fitting the training data on my model to check the initial trend (would run for more epochs if initial trend seems right), I ...
0 votes
3 answers
41 views
+100

Training tricks for increasing stability in mixed precision

I would love to be able to use automatic mixed precision more extensively in my training, but I find that it is too unstable and often ends in NaNs. Are there any general tricks in training that ...
  • 28
0 votes
1 answer
14 views

Not able to understand Transfer Learning with Vgg16

So, I have to work with Vgg16 in my semester group project, and was following this to do transfer learning. I don't understand CNN much, but am learning currently. The very first problem was that ...
0 votes
0 answers
7 views

Unstable loss in binary classification for time-series data - extremely imbalanced dataset

I am working on deep learning model to detect regions of timesteps with anomalies. This model should classify each timestep as possessing the anomaly or not. My labels are something like this: ...
  • 73
0 votes
0 answers
15 views

What is an acceptable value for mean average precision for a custom object detection model based on a pretained model?

I have custom trained two models from pretrained models available on TensorFlow object detection model zoo (ssd mobilenet and ssd resnet). The objective is to detect objects on a football field. There ...
  • 13
1 vote
1 answer
18 views

Feed output of neural networks into other network in tensorflow

I have two well trained neural networks, shown as: ...
0 votes
0 answers
12 views

How to test TensorFlow model for single input file?

I am new in TensorFlow. Code above is a python code, which trains NN for spoken language identification task. How can I add ability to predict a single audio file and give predictes class(label) name, ...
  • 1
0 votes
0 answers
11 views

(Python, MNIST) how to load/import my own img for AI to train

Questions like these are difficult to debug, but you'll hopefully find more help on datascience.stackexchange.com than here I see the suggestion, that post my questionin Data science is also a good ...
0 votes
0 answers
19 views

Obscured object segmentation in binary segmentation

I am using deep learning for building outline segmentation. I have used binary segmentation method using UNet model which runs on Tensorflow 2.0. The output is fine when there are no other object (Ex. ...
0 votes
0 answers
18 views

How to convert ndarray to spark dataframe for mlflow prediction?

I have a trained model, and test input from mnist ...
  • 1
0 votes
0 answers
17 views

Why is there such a difference in final accuracy between 700x700 px image and the same split up into 140x140 px in TensorFlow

I have a relatively simple TF script for a convolutional neural network to classify microscopy images good or bad - manually this is done via the clarity of the image with bad images appearing blurry. ...
  • 1
0 votes
0 answers
129 views

` TypeError: int() argument must be a string, a bytes-like object or a number ` raised when fitting a multi input Keras model

I'm currently building a U-net model handling multiple input streams of data with Keras/Tensorflow's Functional API. Even though my model compiles, it raises a TypeError when I try to fit it. This ...
2 votes
1 answer
162 views

Keras model does not construct the layers in sequence

Every time I print the model summary it prints out the convlstm first and then batchnormalization at the end. ...
  • 23
0 votes
0 answers
15 views

Tensorflow Text Segmentation or Open CV Text Segmenation

I want to extract text data from the image, however not sure what approach I should take. Steps successfully performed Dataset collection Image Preprocessing done Image Augmentation done Final Image ...
  • 101
0 votes
0 answers
8 views

How to create test data for multi input model without label with tf.data api

I am having problem creating test data with tf.data api for a model that takes 2 inputs. model ...
0 votes
0 answers
14 views

Example using Dataset to prepare data for LSTM

I'm trying to use Dataset to prepare data for LSTM training. Here's what I'm doing: ...
0 votes
0 answers
5 views

Lacking of common metrics in tensorboard when analyzing tensorflow and yolo models

I trained 5 different models for object detection, those are: EfficientDet D1, SSD MobileNet V2, SSD ResNet512, YOLOv3-spp and YOLOv5x The first 3 are from the tensorflow model zoo and were trained ...
  • 1
0 votes
0 answers
9 views

why first layer need to add augmented data in keras model

I am new in DL and stuyding this deep learning, I just working on one project is called emotion recognition. I have created data augmented. My question is why we are adding augmented data into first ...
0 votes
0 answers
5 views

How to combine multiple dataset efficiently to solve using meta learning?

I am solving a meta-learning problem using Reptile Algorithm as used here. I have two datasets. One contains the following classes: iris, pupil, and sclera along with their annotations. Another ...
  • 1
0 votes
1 answer
18 views

How to read floating values?

I am very very new to machine learning. I try to understand using TensorFlow. I have data like: ...
  • 101
0 votes
0 answers
20 views

Proper way to reshape a image for training using CNN

I am new to Keras and facing some problems figuring out how to reshape the input image data properly. I have $16 x 16$ images, each with three layers, i.e., R, G, and B. The image data is in the form ...
0 votes
0 answers
9 views

Efficient range loss function

I'm looking for an efficient loss function, that instead of value would provide me with a range for the value. The function I've written for this looks like follows: ...
0 votes
0 answers
16 views

Keras Custom Layer Aware of Position in Network

I'm writing a custom Layer in TF/Keras (tf.keras.layers.Layer) for a CNN, and I need each layer to know its own depth in the model. Is there any way I can do this, ...
1 vote
1 answer
21 views

No improvement in test and training accuracy when training different optimizers

I am currently testing 5 different optimizers to see their training loss, and their testing accuracy. The optimizers are: AdaGrad, AdaDelta, RMSprop, Adam, Nadam. I am using a quite simple model with ...
0 votes
1 answer
22 views

Setting shape of RaggedTensor with Known Shape

I'm working with RaggedTensors to manipulate a dense tensor. Something like this : ...
0 votes
0 answers
22 views

How to get prediction labels with Tensorflow Serving Predict API?

I have a keras classification model saved remotely, and I use RESTful API to call the model on my site and make predictions. The JSON request is done as follows URL: ...
0 votes
1 answer
50 views

image_dataset_from_directory using a subset of sub-directories

I have downloaded the MINC dataset for material classification which consists of 23 cateogories. However, I am only interested in a subset of the categories (e.g. [wood, foliage, glass, hair]) Is it ...
0 votes
0 answers
11 views

Training loss decreasing but prediction on training data not as expected

What can go wrong when the training loss is decreasing but the prediction on the training data itself is worst not even expected? I know my implementation is correct because I have rechecked it. ...
0 votes
0 answers
10 views

How to train encoder in BiGAN?

I have some difficulties training a BiGAN. In particular, the encoder seems not learning the map between the images x and the latent space z. I have the following encoder: ...
  • 1
1 vote
1 answer
196 views

Failed to convert a NumPy array to a Tensor (Unsupported object type float) in Python

I am trying to build a MLP with Keras and an error appears. I do not have experience with neural networks so it is difficult for me. When I run the code for the NN after some time it says: ...
0 votes
0 answers
510 views

Keras Graph Execution Error When fitting the model

I am using this https://keras.io/examples/vision/conv_lstm/ code and providing my own dataset, which consists of frame size 550x775. But When I try to execute the ...
0 votes
0 answers
4 views

looking for datasets to build multi-output models

I am looking for beginner friendly datasets(of any type) that can be used to train a deep neural network with multiple outputs. I tried looking on places like Kaggle but there is so many datasets that ...
  • 1
0 votes
0 answers
13 views

Manipulating weights after Keras concatenation

I'm trying to initialize the Autoencoder in the diagram as follows: At the beginning, I want all weights and biases to be zero except those that go directly from the input to the bottleneck, and ...
  • 113
0 votes
0 answers
10 views

Image Classification | High loss

i am working on image classifiaction. With keras, tensorflow. ...
-1 votes
1 answer
112 views

I am getting this error (TypeError: unsupported operand type(s) for %: 'builtin_function_or_method' and 'int'). Any advice on how to overcome it

I am getting this error consistently when using TensorFlow to run the original PINNs file for Schrodinger equations. The machine says the error is on line 247 (with [] in the code), but the code here; ...
0 votes
0 answers
23 views

Is it possible to have the variable input channel size in a Tensorflow/Keras model?

I would like to build a single Tensorflow model with the variable channel size. My goal is to have this single model to take the input data with 1, 2 or 3 channels. Is this possible? I tried on the ...
  • 11
0 votes
0 answers
13 views

Can you register two or more concrete functions that have partially specified types with a tf.function in TensorFlow?

I have a TensorFlow model wrapped in a tf.Function which I would like to wrap four Concrete Function/Graphs/Input Signatures into. The four input signatures are tf.uint8 Tensors with indeterminate ...
  • 1
0 votes
1 answer
26 views

Is it possible to use TensorFlow without writing any Python?

I have a strong preference for C/C++ and would prefer not to touch Python in my projects. Is it possible to do this with TensorFlow? It seems to advertise itself as a C/C++ SDK but then it asks you ...
0 votes
0 answers
15 views

Discrepancy in `class_weight` parameter in TensorFlow model fitting

I have a 51-class classification problem, where one of the classes is about 80% of the training data and the remaining 50 classes are each about 0.4%. As such, when I train my TF feed-forward neural ...
  • 101
0 votes
1 answer
24 views

How does the concatenation work between CNN and normal features

I have a problem. I have trained a CNN model for an NLP classification problem and combined it with other features. I am using Concatenate to concatenate the two ...
  • 89
0 votes
0 answers
15 views

kernels are learnable in tf.nn.conv2d?

I am implementing a custom convolution layer as follow to understand the customizable layer: ...
  • 121
0 votes
0 answers
16 views

Troubleshoot a 3D CNN that underfits by predicting values near the mean

I have 3D NIFTI files of brain MRI scans, and with each scan is an associated target value that I am trying to predict through regression. The target values are continuous and in the range ...
  • 1
0 votes
0 answers
18 views

Beginner: mnist converted to jpeg model not accurate

As a beginner I'm trying to understand the Tensorflow quickstart tutorial . Basically the page gives you a series of buttons to click after wich you are told you achieved a 98% accuracy. This is not ...
0 votes
0 answers
218 views

Invalid argument error: logits and labels must be broadcastable

Whenever I try to execute this vgg16 code I get an error like this: ...

1
2 3 4 5
43