Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [tensorflow]

For questions related to Google's open-source library for machine learning and machine intelligence. However, note that programming questions are off-topic here.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

No matter how I change a loss function I get it equal to infinity

I am a bioinformatician, and at the moment I am working with a dataset containing ~12.3 million mutations for ~5500 individuals. The goal is to perform binary classification. I use this framework to ...
YKY's user avatar
  • 101
0 votes
0 answers
19 views

can Vision transformers be used to retain the relevant features (drop unrelated features from the clutter in image) and map to the specific query

Background, I have good understanding of ML 101 (supervised, unsupervised, tensorflow etc), however just getting into transformers & gen-AI. I have recently started looking into Transformers/ViT ...
cyborgt8's user avatar
0 votes
0 answers
7 views

Help With Converting NumPy Function To TensorFlow Ops (graph execution issue)

I'm trying to export my command recognition model for deploymenet on embedded devices, however, I'm facing trouble when trying to encapsulate the preprocessing function into my model, that way, when I ...
Aamar_Alberm3768's user avatar
0 votes
1 answer
34 views

Why are the tutorials and built-in datasets giving us examples that simply do not work?

I have built a classical neural network based on IMDB reviews according to the tutorial in one book about AI. 25 000 positive reviews, 25 000 negative reviews. Positive reviews result to "0",...
Jaroslav Tavgen's user avatar
0 votes
1 answer
30 views

How do I input multi-channel Numpy array to U-net for semantic segmentation

I had lidar 3D point cloud data from semantckitti. I want to perform Semantic Segmentation on the data using U-Net. I converted the 3d point cloud data into 2D using spherical conversion and saved the ...
Leibniz 24's user avatar
0 votes
0 answers
34 views

Trained model on cifar10 performs poorly on real images

So I'm trying to train a model using the CIFAR10 dataset. The problem is that while the performance of the model on validation and test sets are good (about 95-96%), the model fails to predict images ...
AlbertDang's user avatar
1 vote
1 answer
39 views

Beginner need help - identify data [closed]

I am learning Tensorflow, and I have a specific problem I want to solve. I want to identify on/off of my large power consumers at home. And calculate the power consumption elsewhere. I expect to input ...
povlhp's user avatar
  • 11
1 vote
3 answers
77 views

Does transformers' self-attention mechanism process tokens independently, or entire sequence at a time?

About attention: the Query, Key and Value vectors (before the linear transformations) are just the entire sequence, that is being inputted, or just each token? Chat-GPT nor Youtube didn't give me a ...
CyberLight 64's user avatar
0 votes
0 answers
13 views

adversarial training on convnext shows a very strange curve

i am currently working on a research project where I have to train some models for adversarial robustness. I have implemented the algorithm used by a research paper called adversarial training for ...
M Akrm's user avatar
  • 1
0 votes
0 answers
29 views

Deployment of Model into Java Application

Over the past few months, I have developed and tested a TensorFlow U-Net model based on the Keras Functional API. Recently I have been interested in deploying this model for use in a Java application ...
Max's user avatar
  • 13
0 votes
0 answers
14 views

Is sparse categorical crossentropy support arbitrary custom label encoding?

As we know that in AI tools like tensorflow has loss named sparse_categorical_crossentropy which bassically ...
Muhammad Ikhwan Perwira's user avatar
0 votes
0 answers
25 views

Why does the accuracy get stuck at a constant value when using Keras for multiclass singles-label classification problem?

I am trying to solve a multiclass classification problem using Keras. The current network looks as follows: ...
isostar's user avatar
-1 votes
1 answer
27 views

Why does the number of parameters differ in each layer when each layer is defined the exact same way [closed]

...
Mohd. Farhan Hassan's user avatar
2 votes
1 answer
60 views

If the output is 0.09, does this mean that the prediction is class 1 or 0?

I use a Keras EfficientNetB7 and transfer learning to solve a binary classification problem. I use tf.keras.layers.Dense(1, activation="sigmoid")(x) for ...
Doug's user avatar
  • 25
0 votes
0 answers
7 views

Design approach for image classification regarding genders

I am new to the world of AI and wanted to ask your guidance on how to design a ML model to classify genders based on images. There will be only one person in the image. The person could be kids, ...
Doug's user avatar
  • 25
0 votes
0 answers
25 views

NaN gradients while Training (but loss isn't NaN neither the computational graph is disconnected)

The reason I am asking this here is that I haven't found a bug in my code and maybe there isn't a bug at all (or maybe there is). I just want to validate the idea that I am trying to implement. Here ...
Ryukendo Dey's user avatar
2 votes
0 answers
133 views

cGAN: Discriminator loss going to zero while Generator's going always up but the result is very good

I have a Conditional Generative Adversarial Network for Quantum State Tomography. The metrics I am monitoring during the training process are the losses and the Fidelity (the degree of similarity ...
Dimitri's user avatar
  • 23
1 vote
1 answer
31 views

Can I do incremental learning with different loss function in neural networks?

I have a saved tensorflow neural network model. I was wondering if it's possible to incrementally train the model but with different nt loss function.
SUNITA GUPTA's user avatar
1 vote
0 answers
48 views

How to represent cards for uno game

I am currently trying to build a DQN agent that plays the game UNO The observation it gets looks like this: ...
Devin Myers's user avatar
0 votes
0 answers
19 views

kerascv retinanet for gender identification

I am using KerasCV Retinanet to detect people and their genders in images. I would like to detect "man", "woman", "boy", "girl" and "baby" in images. ...
Doug's user avatar
  • 25
0 votes
0 answers
27 views

Neural Networks Model Predictions on Same Sample

I have built a tensorflow model to reconstruct the given input data sample by using an Autoencoder to predict the Missingness in the sample. However I do not have enough data sample where i don't have ...
siva sai kumar reddy's user avatar
1 vote
1 answer
76 views

RL agent for autonomous vehicle is able to follow the road but can't avoid crashing at all (Highway-Env / Racetrack Env.)

I coded some deep RL algorithms (DQN and SAC) with tf2/keras to solve an environment where a vehicle needs to follow the track and avoid crashing into one other vehicle (there is only one other ...
rafiqollective's user avatar
0 votes
1 answer
88 views

Transfer learning using pretrained tensorflow object detection model [closed]

I am new to AI/ML and wanted to seek guidance as I am totally lost. I will simplify my issue as follows: Let's say I would like to detect apples and oranges in images. I would like to leverage a pre-...
Doug's user avatar
  • 25
0 votes
2 answers
331 views

I'm trying to understand the use model for different Python libraries

I'm new to ML/AI field, and after completing several free university courses from MIT OpenCourseWare and Harvard CS50, I've gained some familiarity with the theoretical foundations of Artificial ...
Boris L.'s user avatar
  • 109
0 votes
0 answers
36 views

MultiLayer Perceptron not working for regression problem, what could I try?

I am trying to learn the inverse kinematics of a robotic manipulator. To do that I have a simulator with which I acquired data. My dataset is composed of positions in X, Y and Z and actuator variables ...
Guillaume's user avatar
3 votes
1 answer
105 views

How can I improve this toy Graph Neural Network Generative Language model [closed]

Background I'm an undergraduate student with research interests in a field of physics that has significant overlap with graph theory, and a functioning knowledge of how simple neural nets work and how ...
MomentumEigenstate's user avatar
0 votes
0 answers
40 views

Interpreting TensorFlow playground simple neural network

The hidden layer neuron output images are meaningful to me. But I don't understand how the model can output any number except zero for the III quadrant when all hidden layer neurons output 0 for any ...
DimitrijeCiric's user avatar
1 vote
1 answer
71 views

Dealing with noise in models with softmax output

I have a device with an accelerometer and gyroscope (6-axis). The device sends live raw telemetry data to the model 40 samples for each input, 6 values per sample (accelerometer xyz, gyroscope xyz). ...
Sterling Duchess's user avatar
0 votes
0 answers
208 views

Feature Importance for FT Transformer

I hope someone is able to shed light on this. I was reading through the codes on this link with regards to getting feature importance from attention scores. https://github.com/aruberts/...
DDM's user avatar
  • 101
0 votes
0 answers
20 views

How do I find a similar RNN as a starting point?

I am new to machine learning and neural networks and I want to create a neural network for a study project. I would like to create a RNN, that uses one (A) or several time series (with the same length,...
xlaub's user avatar
  • 1
0 votes
0 answers
28 views

Binary classification using softmax and categorical crossentropy: monitoring validation

I run a binary classification using different CNN versions in Tensorflow. When I label samples from each class using 0 and 1, I select a sigmoid output in the last layer of the CNN, like ...
GKH's user avatar
  • 101
-1 votes
1 answer
299 views

Empty space detection [closed]

I'm looking for a TensorFlow model detecting empty spaces on the images. I need to add my company logo to this empty area so there shouldn't be any faces or objects in this area. Also, I would be ...
falsetto's user avatar
0 votes
1 answer
37 views

Patterns binary classification - model doesn't overfit

I am working on a very basic binary classification problem. For each set of four float numbers $(x,y,z,w)$, I want to check if they fall or not into one category. I have written a model with 3 dense ...
apt45's user avatar
  • 123
0 votes
0 answers
23 views

Difference in quantization regarding transpose_conv2d / conv2d

I'm trying to implement a transpose_conv2d function using padding/dilation of the input and calling a regular conv2d function. My approach is calculating the new input shape, padding and dilating the ...
punktphil's user avatar
0 votes
1 answer
151 views

What is actually being saved in the file when you save a model? For example a Tensorflow SavedModel file [closed]

I'm building a feature for my application that requires reading the properties of a saved ML model file (after it's trained). However, as I am pretty new to this field, I don't really understand the ...
Ryan Wang's user avatar
  • 113
1 vote
1 answer
246 views

Is it possible to write/build an AI model without using Frameworks? [closed]

I'm a relatively newbie in this world of Artificial Intelligence, although I am able to use frameworks such as Tensorflow and also understand the general concepts behind training weights and ...
Ryan Wang's user avatar
  • 113
0 votes
0 answers
22 views

How can I transform a signal into another using supervised learning?

I'm trying to transform a signal into another using supervised learning. My main goal is to create a model capable to transform a raw signal (Blue Line) into something similar to the "ideal" ...
Nathaldien's user avatar
0 votes
0 answers
20 views

Where can I find a model trained to detect patterns of an object like laboratory mice?

I am working on a real-time pose detection project using a model trained by DeepLabCut, which utilizes .pb and .yaml files for the model. My aim is to find a model or method that can help me detect ...
Jimena García's user avatar
0 votes
0 answers
19 views

How to extract body of a base-model and fine tune with that body on different shape dataset like this situation

In BERT like transformer model (I am not talking about BERT in this thread), it has 2 training objectives Masked Language Modeling and Next sentence prediction right? and BERT model is also supports ...
Arjun Reddy's user avatar
0 votes
1 answer
1k views

Keras Subclassing : TypeError: 'KerasTensor' object is not callable Call arguments received by layer [closed]

Implementing UNet but getting an error: type error 'KerasTensor' object is not callable ...
vivian.ai's user avatar
1 vote
1 answer
71 views

Transfer Learning for Solar Energy Production Forecasting with LSTM: Generalized vs. Specialized Models

I am working on a solar energy production forecasting problem using LSTM multi-step models to predict 1/4/8h ahead of solar energy production for different solar installations. Our goal is to help ...
Guilherme Vieira's user avatar
0 votes
1 answer
31 views

How to convert my test data in the same dimensionality as my train data

I have trained a VAE with jpg images. My latent space dimension has 768 features and when plotting the latent space it looks like this: However, when I use the scikit learn tool LDA (Linear ...
Dude Rar's user avatar
2 votes
0 answers
30 views

Combining GANs and NLP for AI-Based Programming: Generating Input-Output Templates for Computer Functions

I would like to combine GANs and NLP to create a system that can take an input and generate an appropriate output. For example, ...
Doğuş Deniz's user avatar
0 votes
0 answers
205 views

Increasing "output_sequence_length" in TextVectorization layer worsens model's performance

When exploring the Twitter Sentiment Analysis dataset on Kaggle, I came up with a model that looks like this: ...
Tran Khanh's user avatar
0 votes
0 answers
3k views

How important is to fix this common Tensorflow warning?

I have seen some people with the same problem, this is the warning: ...
Mah Neh's user avatar
  • 89
4 votes
2 answers
6k views

Open-source vocal cloning (speech-to-speech neural style transfer)

I want to program and train a voice cloner, in part to learn about this area of AI, and in part to use as a prototype of audio for testing and getting feedback from early adopters before recording in ...
emonigma's user avatar
0 votes
1 answer
116 views

Why final memory state equals to the last hidden state of entire hidden state sequence?

when return_sequences=True and return_state=True, a TensorFlow LSTM outputs the hidden states of the LSTM cell along with the ...
noone's user avatar
  • 123
0 votes
1 answer
45 views

How to improve classification accuracy in TF deep neural network model?

I need help in increasing the accuracy of a classification model using Neural Networks on Tensorflow. I am trying to train a model on sequential data ...
Fr_nkenstien's user avatar
0 votes
1 answer
74 views

L2 regularization in BN layers, how to set gamma?

I have read tensorflow's documents about batch normzalization , but still don't get what is the gamma regulizer? the link to document: https://www.tensorflow.org/api_docs/python/tf/keras/layers/...
sara yaghoobi's user avatar
2 votes
1 answer
174 views

How does the memory augmented neural network work, and how to make a simple implementation?

How does the memory augmented neural network (MANN) work? How can I make a simple MANN with a vanilla neural network especially without a recurrent network?
Eka's user avatar
  • 1,066

1
2 3 4 5
8