All Questions
179 questions
0
votes
0
answers
97
views
What is wrong with my Python and Tensorflow install?
I work on a PC with Windows 11 and have installed Python 3.11.9 which is supposed to be the required Python version for Tensorflow. I also installed numpy 1.26.4, scipy 1.15.2, Orange3 3.38.1 which ...
0
votes
1
answer
144
views
Tensorflow-data-validation installing issue
I'm using Python 3.12, and I'm trying to install the latest version (1.15.1) of TensorFlow Data Validation. However, while installing, I encountered the following error:
ERROR: Could not find a ...
0
votes
0
answers
351
views
I had a problem installing tensorflow library in Anaconda, which caused a lot of errors, does anyone know how to solve it?
When I installed the tensorflow software library, there was an error:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the ...
-4
votes
1
answer
102
views
well i am trying to "import tensorflow as tf " [duplicate]
getting an error in it. I have tried to ask chatgpt as well but well it has run out of solutions. I tried down grading the libraries and also upgrading a few but it still didn't solve my error.enter ...
0
votes
0
answers
38
views
I'm having trouble downloading TensorFlow Federated. I'm not sure which version of TensorFlow is compatible with TFF
here are the versions of TFF, tensorflow and python which i'm using
I am encountering difficulties when attempting to run my script.py file. The issues stem from the incompatibility of various ...
0
votes
0
answers
40
views
MNIST not outputting correct prediction - school project
I created a simple python script that will open a small window and allow user to draw a digit 1-9. When I test it, it continuously outputs the wrong number but says it is 98% accurate when training. ...
0
votes
1
answer
84
views
InvalidArgumentError: Graph execution error: in training of U-Net
I would like to ask for help in resolving an error I encounter when starting the training of my U-Net. My network aims to detect objects. My model has 2218 training images and 50 test images. All ...
-3
votes
1
answer
65
views
What the difference between tf.convert_to_tensor(np.sin(x)) and tf.math.sin(x)?
Bad english, tried my best
I want to plot derivative of function (for example SIN(x), yeah i know that it is cos but only for example) with the following code
x = np.linspace(-5, 5, 100)
tensor_x = tf....
0
votes
1
answer
26
views
Can't Chose the correct shape for train image dataset
I'm trying to use the CNN architecture I've developed to train imbalanced data model and evaluate its performance.
This is my code:
# Import necessary libraries
from sklearn.utils import shuffle
...
5
votes
1
answer
10k
views
How to fix 'np.object will be defined as the corresponding NumPy scalar' in Keras
I'm working with one of the Deep Learning With Python notebooks (second edition)
When I run the following code in cell 1 --
from tensorflow.keras import layers
model = keras.Sequential([
layers....
0
votes
1
answer
181
views
Error through converting a jax numpy pre-trained weight to h5 weight
I have downloaded a jax numpy weight file with npz suffix, but when I tried to convert it to h5 file I recieved this error:
import jax.numpy as jnp
import h5py
import tensorflow as tf
BASE_URL = "...
0
votes
1
answer
211
views
Python- voice detection using Tensorflow
I am making voice detection by using Tensorflow. The computer will be recording my voice and when I say:" Hey Jarvis" it will print "voice has been detected". However, the program ...
1
vote
0
answers
70
views
Keep getting errors with Tensorflow python
import tensorflow as tf
import numpy as np
import random
class ModelClass:
""" used for getting all the juicy payloads and making them """
def __init__(self, ...
-1
votes
1
answer
1k
views
getting AttributeError: 'numpy.ndarray' object has no attribute 'dim' when converting tensorflow code to pytorch
I was translating my TensorFlow code to PyTorch and suddenly faced this error.
What am I doing wrong here?
AttributeError Traceback (most recent call last)
<...
0
votes
0
answers
103
views
Is there a way to convert a large Batch Dataset into a numpy array? The Batch Dataset in question consists of 150,000 image tensors
So I have used the image_dataset_from_directory function from the tensorflow.keras.preprocessing library to load my image data. It loaded it into a batch dataset. I want to convert this into a numpy ...