All Questions
Tagged with python tensorflow
47,932
questions
0
votes
0
answers
10
views
What Is the best ML API for a Deep Audio Classification Model on the Raspberry Pi 0 2W?
I'd like to get your opinions on which ML API would be best for building an audio classification model. This model will be deployed on a small Raspberry Pi (Raspberry Pi 0 2W; could be something ...
-2
votes
1
answer
25
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
16
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
0
answers
17
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
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, ...
0
votes
2
answers
35
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
import ...
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 (...
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
19
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 ...
0
votes
0
answers
26
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\...
-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 ...
-2
votes
0
answers
33
views
Running a hello world program with Tensorflow gives me this error
I use Pycharm IDE to run Python programs. I have successfully installed TensorFlow package without problem but when I try to run the program ( a simple hello world program) it gives me this long error!...
0
votes
0
answers
20
views
Keras CNN model gives different output predictions for the same input
Hi I have trained a CNN model with keras similar to the example model they use on their website but with slightly smaller layers and an extra dropout layer at the end. The model build functions looks ...
-1
votes
1
answer
23
views
How can TruePositive be a decimal number in keras.metrics.TruePositives?
I am trying to train a CNN model on an image dataset, but I am stuck getting decimal values for TruePositives, TrueNegatives, FalsePositives, and FalseNegatives. How can that be possible?
ERROR ...
1
vote
1
answer
111
views
metadata-generation-failed when installing tf-models-official
I'm trying to install tf-models-official with !pip install tf-models-official and when it started to collecting kaggle>=1.3.9, it returned error below :
Collecting kaggle>=1.3.9 (from tf-models-...