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
3 answers
31 views

How can I downgrade the python in the terminal in visual studio code?

I have a piece of code I need to run but it is only compatible with tensorflow 1.3,1.4 and 1.5. I think I need to downgrade python in order to run this however the terminal has python 3.10 I have ...
user26530134's user avatar
-3 votes
1 answer
32 views

Tensorflow can't find available GPUs (win11)

I have a pretty common issue: tensorflow framework can't recognize available GPUs on my laptop. When i try to list available GPUs in VS Code using Python (v3.11.0): import tensorflow as tf print("...
Vladimir Hartoniuk's user avatar
0 votes
0 answers
4 views

tensorflow>=2.16.2 -> compile doesn't use provided loss function

I am training a model with tensorflow 2.x. Up to now, I was using 2.14.1 and I had no issue. Now, I upgraded to 2.16.2 (also tried 2.17.0) and the same code doesn't work anymore. The whole model ...
PMDP3's user avatar
  • 27
0 votes
0 answers
4 views

Object detection and Object classification in android kotlin

I want to deploy two object detection models in a single project: the first model to detect cars and the second model to detect license plates. For the first model that detects cars, I want to apply a ...
Dev Soni's user avatar
0 votes
0 answers
17 views

How can I save a Keras file with custom layer so that it keeps the trained weights

Inspired by https://keras.io/examples/vision/captcha_ocr/ I tried to build a similar CaptchaAI that can solve 6 instead of 5 characters (as in the linked example). The whole model and training data ...
FlyingLizard3's user avatar
0 votes
1 answer
19 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
  • 3
0 votes
0 answers
22 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
16 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
39 views

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

I am trying to predict stock prices. Here is my code: import pandas as pd import yfinance as web import numpy as np from sklearn.preprocessing import MinMaxScaler from tensorflow.python.keras.models ...
Subbsos's user avatar
0 votes
0 answers
17 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
18 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
10 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
28 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
20 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

15 30 50 per page
1
2 3 4 5
5529