Skip to main content

All Questions

Tagged with
0 votes
1 answer
68 views

Is there a reason that tensorflow is not working with Keras?

import os os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0' import tensorflow as tf from tensorflow.keras.layers import Conv1D, MaxPooling1D, GlobalAveragePooling1D, Dense, Dropout, BatchNormalization from ...
Ali Abzakh's user avatar
0 votes
0 answers
67 views

ValueError: Unknown layer: 'GetItem'

Here is the full error message: ValueError: Unknown layer: 'GetItem'. Please ensure you are using a keras.utils.custom_object_scope and that this object is included in the scope. See https://www....
Yun's user avatar
  • 47
0 votes
0 answers
42 views

LSTM Prediction Issue: Not Predicting Last Record and Backward Prediction Behavior

I'm conducting some tests with LSTM for learning purposes, but I've encountered a peculiar situation while testing its predictions. I've observed in the graph images that it doesn't predict the last ...
user2831852's user avatar
0 votes
1 answer
91 views

keras.utils.get_file() throws TypeError: '<' not supported between instances of 'int' and 'NoneType' [closed]

I am trying to follow along with the book Applied Deep Learning and Computer Vision for Self-Driving Cars. I am running into issues with keras while running some of the example code. When trying to ...
RPBruiser's user avatar
  • 310
1 vote
0 answers
14 views

Why does EarlyStopping.stopped_epoch gives one less than actuall last epoch

Im training a regresive model using keras. In the code Ive putted that it has to print Last epoch and Best epoch, just to keep track of it, and all the time it gives last epoch as one less, not to say ...
Dtar380's user avatar
  • 13
1 vote
2 answers
1k views

ImportError: cannot import name 'ImageDataGenerator' from 'tensorflow.keras.preprocessing'

Problem when importing the ImageDataGenerator from keras. I tried using: from tensorflow import ImageDataGenerator from tensorflow.keras.preprocessing import ImageDataGenerator Creating alias for ...
Bruno da Costa's user avatar
0 votes
1 answer
116 views

Python Bert is failing at preprocessed_inputs = preprocessor(text_input). A KerasTensor is symbolic: it's a placeholder for a shape an dtype

I'm tying to load bert model and text_input is printing <KerasTensor shape=(None,), dtype=string, sparse=None, name=keras_tensor_54> and preprocessor is also loading but still getting this error....
B.Ayaz's user avatar
  • 47
0 votes
1 answer
130 views

Tensorflow keras error AttributeError: 'tuple' object has no attribute 'lower'

I have code: import tensorflow as tf from tensorflow.keras.preprocessing.text import Tokenizer from tensorflow.keras.preprocessing.sequence import pad_sequences from tensorflow.keras.models import ...
Milos Cecaric's user avatar
0 votes
1 answer
1k views

partially initialized module 'keras.src' has no attribute 'utils' (most likely due to a circular import)

AttributeError: partially initialized module 'keras.src' has no attribute 'utils' (most likely due to a circular import) this are my import files from flask import Flask, render_template, request, ...
Pratik 's user avatar
0 votes
0 answers
93 views

model.fit throws me error "Expected tensor of type int64 but got type float" at random epoch

I am trying to fit this model with tensorflow : from tensorflow.keras.models import Sequential, load_model from tensorflow.keras.layers import Input, Dense, Dropout, BatchNormalization from tensorflow....
Louis Lecouturier's user avatar
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. ...
Shawn's user avatar
  • 21
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 ...
Mauricésar Barbosa's user avatar
1 vote
0 answers
174 views

Model.fit "TypeError: 'NoneType' object is not callable"

I am trying to train a NN from a tutroial that I am following but when I run the code I always get this error and I don't know if I am searching for the solution correctly. from tensorflow import ...
yamenaly's user avatar
-4 votes
2 answers
12k views

Installation guide for Python 3.7 for Windows 11

How can I install Python 3.7 for my 64-bit Windows 11 Home Edition? I found that status of Python 3.7 is "End of Life". Link here I am required to install it because one of my projects has ...
Encipher's user avatar
  • 3,168
-3 votes
1 answer
367 views

keras model.add NameError: name 'input_shape' is not defined

i am following a yt tutorial and my programm shows "NameError: name 'input_shape' is not defined" did i forget to import something ?? or did the name change of the 7 months since this video ...
Rick's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
50