Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [tensorflow]

TensorFlow is an open-source library and API designed for deep learning, written and maintained by Google. Use this tag with a language-specific tag ([python], [c++], [javascript], [r], etc.) for questions about using the API to solve machine learning problems. The programming languages that can be used with TensorFlow API vary, so you must specify the programming language. Please specify the application area such as [object-detection] as well.

0 votes
1 answer
7 views

Inconsistent Model Predictions When Using Entire Validation Dataset vs. Batch Sampling in TensorFlow

I am training a deep learning model using TensorFlow and Keras on an image classification task. My model achieves high validation accuracy when evaluated using the validation_ds dataset. However, when ...
aba ba's user avatar
  • 1
0 votes
0 answers
14 views

Why are gradients None for all variables in my TensorFlow Siamese Network during training?

I'm training a Siamese Network in TensorFlow for image registration. The network takes a pair of images (fixed and moving) and outputs parameters for an affine transformation that aligns the moving ...
Melissa's user avatar
  • 11
0 votes
0 answers
13 views

ValueError: The layer sequential_10 has never been called and thus has no defined input

I'm trying to make a Flappy Bird AI, using the flappy_bird_gym repository using Tensorflow. I have created an environment using conda in WSL2, tensorflow version 2.17, with keras-rl2 and keras 3, ...
Srajan's user avatar
  • 3
0 votes
2 answers
22 views

AttributeError: 'list' object has no attribute 'shape' error

I am currently trying to follow a tutorial as I just started to learn Machine Learning. I am trying to predict stock prices. Here is my code: ` import pandas as pd import matplotlib.pyplot as plt ...
Subbsos's user avatar
0 votes
0 answers
15 views

ValueError: Arguments clone_function and input_tensors are only supported for Sequential models or Functional models

I am using Quantization aware training. I refer to the lstm code on the Internet and want to put QAT into lstm, but I encountered a ValueError. ValueError Traceback (...
Vina's user avatar
  • 11
0 votes
1 answer
16 views

Flutter for face recognition

do anyone know how to archieve this? I have been trying it with tensorflow lite but i always get "Interpreter has not been initialized" and im not getting more error messages. there are ...
Carlost's user avatar
  • 663
0 votes
0 answers
9 views

TF/Keras why did MaxPooling3D return a tuple of one tensor instead of a singleton tensor in this snippet?

tensorflow 2.15 backend inp = layers.Input(batch_shape=batch_shape) print('Input {}'.format(str(inp.shape))) Input (1, 7, 60, 60, 1) x = inp x = layers.Dropout(0.2)(x) x = layers....
user2624395's user avatar
0 votes
0 answers
19 views

different predictions on same data, TenserflowJS

I have saved a TFJS model to a document in cloud firestore, if I run this code straight from the browser: const jsonObject = JSON.parse(TFModeljson); loadedModel = await tf.loadLayersModel(tf.io....
chrispsv's user avatar
  • 655
0 votes
0 answers
12 views

AttributeError appears while importing sciann

I am using following packages: Tensorflow Version: 2.16.1, Keras Version: 3.3.3.dev2024060803, Python Version: Python 3.11.7 , Conda Version: conda 24.5.0 While running the code "import sciann as ...
Himanshu Gaur's user avatar
0 votes
0 answers
16 views

Why is the actor loss for actor-critic is multiplied by -1?

https://www.tensorflow.org/tutorials/reinforcement_learning/actor_critic#3_the_actor-critic_loss In this TensorFlow guide for the Actor-Critic method, the actor loss is calculated using the following ...
zzz's user avatar
  • 1
0 votes
1 answer
27 views

Tensorflow 2.17.0 build failed with bazel linux

I download the source code of tensorflow-2.17.0 from github, then i run 'configure' and build with bazel-6.5.0 successfully, > bazel build //tensorflow/core:tensorflow then i create a folder 'test'...
WardenAllen's user avatar
0 votes
0 answers
24 views

RuntimeError: Given groups=1, expected weight to be at least 1 at dimension 0, but got weight of size [0, 16, 1, 1] instead in YOLOv8 Model Training

I am trying to train a YOLOv8 model using the yolov8n-pose.pt pretrained model with the following configuration in config.yaml: # Data path: C:\Users\Denis\OneDrive\Documents\Project\Workout Assistant\...
denisss the goat's user avatar
-2 votes
0 answers
18 views

single class object detection using cnn getting false positive

Here, i trying to build a Manhole object detection using cnn , In this model i got 95% accuracy and after training. im getting false positive like , if i test image with manhole(trained object) for ...
FAYAS's user avatar
  • 1
-4 votes
0 answers
22 views

Tensorflow is taking too long too load [closed]

tensorflow loading imageSo I am making a deep learning project in notebook, after installing tensor flow and loading it as shown in the picture i take too long to load at some time I even wait for ...
Raj Bura gohain's user avatar
0 votes
0 answers
15 views

AttributeError: 'SymbolicTensor' object has no attribute 'numpy'

My tensorflow graph neural network has a loss function looks like the code below. It calculates the loss based on the input key. Since gnn stores the key in bytes format, and I need to evaluate it to ...
user10416795's user avatar

15 30 50 per page
1
2 3 4 5
5528