Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
0 answers
162 views

Error loading kera model ValueError: Could not interpret initializer identifier: {'module': 'keras.initializers', 'class_name': 'Orthogonal'

I've created an ltsm model in Colab and want to use that locally. In colab: model.save("my_model.keras") And then locally my script is: from keras.models import load_model model_2 = ...
elksie5000's user avatar
  • 7,580
-1 votes
1 answer
48 views

How can I solve "No file or directory found at ./my_model/model.h5" thrown by tf.keras.models.load_model?

I created a code that tells if a picture of a wave is a raging wave when I enter it into the code. The code is shown below. pip install tensorflow opencv-python import os import cv2 import numpy as ...
user25260259's user avatar
0 votes
0 answers
55 views

TensorFlow Federated (TFF) Compatibility with Python 3.10.x and TensorFlow 2.14.0

I am currently working with TensorFlow 2.14.0 and Python 3.10.x and I am looking to integrate TensorFlow Federated (TFF) into my project. However, I am unsure about the compatibility of TFF with this ...
ATI. MALIK's user avatar
1 vote
2 answers
144 views

Google Colab: error when importing TFBertModel

I have an error in Google Colab when importing TFBertModel, two months before everything worked fine. from transformers import TFBertModel I receive: AttributeError ...
Nata107's user avatar
  • 55
0 votes
1 answer
49 views

TPU Connectivity Issue Training TF Model Google Colab

I have built a working Tensorflow neural network model on CPUs and GPUs. I am now trying to get the model to train on TPUs due to the large datasets. I have initialised the TPU strategy as usual: ...
Arnav Agarwal's user avatar
-1 votes
1 answer
6k views

cannot import name 'ops' from 'keras'

I am trying to run this example Colab notebook from Keras.io, but When I run the first cell (imports section) I get ImportError: cannot import name 'ops' from 'keras' (/usr/local/lib/python3.10/dist-...
Mahsa's user avatar
  • 39
0 votes
0 answers
149 views

Google Colab A100 slower than CPU

I tried to implement a neural network using TensorFlow Keras on a classification dataset from Kaggle. I believe I've implemented it correctly. However, I've noticed that it is faster to train (true ...
user1664484's user avatar
0 votes
0 answers
41 views

Google Colab to Kaggle

I tried to run a code in Kaggle Notebook, which I had run earlier in Google Colab without an issue. But in Kaggle I get the following issue. How to fix it? Thank you. base_model = MobileNetV2(weights='...
RUNR's user avatar
  • 29
0 votes
0 answers
14 views

add_10 layer missing within resnet50 model error

My code had a get_layer command with the layer being add_10 which seems to now be gone from resnet50 ValueError Traceback (most recent call last) <ipython-input-11-...
Jacob A's user avatar
0 votes
0 answers
114 views

ImportError: cannot import name 'count_params' from 'keras.utils'

I am attempting to run the code below. from DataGeneratorSimCLR import DataGeneratorSimCLR as DataGenerator from SimCLR import SimCLR I am getting the error... ImportError: cannot import name '...
Gavic1's user avatar
  • 11
0 votes
2 answers
309 views

Import error in Google colab with keras_utils

ImportError Traceback (most recent call last) <ipython-input-3-2e842b3b11e3> in <cell line: 32>() 30 from keras.preprocessing import image 31 import ...
Jacob A's user avatar
0 votes
2 answers
321 views

AttributeError: module 'keras.api._v2.keras'

%matplotlib inline import matplotlib.pyplot as plt from scipy.spatial.distance import cdist !pip install --upgrade numpy !pip install --upgrade tensorflow==2.14.0 import tensorflow as tf tf....
B OZTURK's user avatar
0 votes
0 answers
40 views

How can I make the prediction run automatically?

I am making my first neural network using Keras libraries in Google Colab. Once the network is trained, I make predictions like this: # image path img_path = '/content/drive/MyDrive/manchas-negras-...
Ivan Lopez's user avatar
0 votes
0 answers
30 views

Shape problem building a nn model with keras in model.fit() function

So I'm working on this code to build a nn with keras. My dataset is about breast cancer diagnosis and I have already done the preprocessing. I am building the model, and everthing was fine until I got ...
Mireia Farreras Domingo's user avatar
0 votes
0 answers
79 views

LeNet Model Issues, how could I fix error : " Unimplemented `tf.keras.Model.call()`"

all. I am currently attempting to recreate the LeNet model (regression) for training. I have been trying to execute the code, but I constantly keeping getting an error that has to do with the ...
Jean Deleon's user avatar

15 30 50 per page
1
2 3 4 5
34