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.
tensorflow
51
questions
0
votes
2
answers
19
views
isinstance() arg 2 must be a type, a tuple of types, or a union
I'm getting an error message when trying to train my model, but some reason its giving me the same message every time I alter it.
Here is the code:
# Define training arguments
training_args = ...
0
votes
3
answers
33
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 ...
-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("...
0
votes
0
answers
5
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 ...
0
votes
0
answers
4
views
Object detection and Object classification in android kotlin [closed]
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 ...
0
votes
0
answers
18
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 ...
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 ...
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 ...
0
votes
0
answers
22
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, ...
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 ...
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 (...
0
votes
1
answer
19
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 ...
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....
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....
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 ...