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
11
questions
0
votes
2
answers
20
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
19
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
24
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 (...