All Questions
473 questions
0
votes
3
answers
63
views
TensorFlow Import Works in Jupyter Notebook, but Fails in Python Script
Problem: import tensorflow as tf causes an error in the Conda environment
I am trying to import TensorFlow and Keras in a Python script using the following command:
import tensorflow as tf
print(&...
0
votes
0
answers
65
views
Jupyter notebook kernel (on VSCode) crashes after I run sklearn's KernelPCA
I'm working on Windows WSL2 and I'm trying to make a KPCA+LDA classifier using sci-kit learn's models. I'm using SIFAR-10 and I've tried a simple KPCA and it keeps crashing the kernel.
import numpy as ...
0
votes
0
answers
58
views
Tensorflow GPU crashing after first epoch
I am training a neural network model and when running the code :
history = model.fit(
X_train, y_train_encoded,
epochs=20,
batch_size=32,
validation_data=(X_val, y_val_encoded),
)
The ...
0
votes
1
answer
1k
views
When I try to install tensorflow in Jupyter I keep getting the error "Could not find a version that satisfies the requirement tensorflow"
I am using Python 3.13.0(64-bit). I am trying to import tensorflow in Jupyter Notebook and I keep getting the error ModuleNotFoundError: No module named 'tensorflow'. I run Jupyter Notebook locally.
...
0
votes
0
answers
97
views
jupyter notebook with vscode on remote machine does not see GPU in tensorflow
I run vscode with a remote machine, using SSH. The tensorflow environment has tensorflow 2.17, python 3.11, and within vscode, python windows detect the GPUs .
However, the same python code that ...
0
votes
0
answers
65
views
running into many problems with jupyter notebook anaconda/conda commands and package installations
Background: I'm on MacOS M1 14.1.1 (23B81). I regularly use Jupyter Notebook from Anaconda Navigator to do small projects in data science/ML. I'm very unfamiliar with terminal-related stuff and ...
1
vote
1
answer
6k
views
ValueError: The filepath provided must end in `.keras` (Keras model format). Received: filepath=model/keypoint_classifier/keypoint_classifier.hdf5
PYTHON version : 3.12.4
PIP version : 24.1.1
KERAS version : 3.4.1
TENSORFLOW version : 2.16.1
i've been trying to run a code on jupyter notebook in order to train a model:
which actually throws an ...
0
votes
0
answers
60
views
I have a problem with the TensorFlow packages
Could someone help me with the following problem. I am trying to use a python program in Jupyter using visual studio. The program is called Segment_every_grain.ipynb
I am running the following command ...
-1
votes
1
answer
74
views
Encountering issue with installing tensorflow-text in Both Jupyter Notebook and Google Colab
I'm facing a ERROR: No matching distribution found for tensorflow-text Jupyter Notebook when i try to insatll it. In Google Colab when im loading tensorflow_hub, so when i install tensorflow-text then ...
0
votes
2
answers
1k
views
Getting error when trying to import keras-ocr
I tried to follow a tutorial about keras_ocr and straight from the beggining I get this problem that I cannot find any information on.
import pandas as pd
import numpy as np
from glob import glob
from ...
1
vote
1
answer
31
views
TypeError while implementing Neural Network code
import numpy as np
class nor_NN:
def __init__(self,iv):
self.input_vector = np.array(iv)
self.weight_vector = np.array([[0.5,-1,-1]])
self.output = np.array([])
def compute(self):
...
1
vote
0
answers
326
views
How I resolve : InvalidArgumentError: Graph execution error?
I'm a biggner at computer vision and classification, I am trying to do a transfer learning with keras VGG16 model, but i keep getting the error bellow this code , could anyone help me or give me at ...
0
votes
0
answers
68
views
I can't get reproducible results with keras neural networks
As the title says. I'm currently working in python (3.11) with keras (2.12.0) and tensorflow (2.12.1, cpu-only package) libraries, and I'm facing some problems with the reproducibility of my neural ...
3
votes
1
answer
2k
views
Keras compatibility issue
I got some code from last year but now I'm trying to run it on my laptop and I get some errors. I think it's because of the conversion of Keras 2 to Keras 3, but I'm not sure.
So my first problem I ...
0
votes
1
answer
88
views
How to limit visible devices in TensorFlow?
I am working on a server with several GPUs, and I want to select one with enough free space.
With pytorch, I found that it can be done by simply setting the os environment variable "...