ValueError Traceback (most recent call last)
Cell In[20], line 1
—-> 1 modeel = tf.keras.models.load_model(‘trained_model.keras’)
File c:UsersarmanAppDataLocalProgramsPythonPython312Libsite-packageskerassrcsavingsaving_api.py:193, in load_model(filepath, custom_objects, compile, safe_mode)
189 return legacy_h5_format.load_model_from_hdf5(
190 filepath, custom_objects=custom_objects, compile=compile
191 )
192 elif str(filepath).endswith(“.keras”):
–> 193 raise ValueError(
194 f”File not found: filepath={filepath}. ”
195 “Please ensure the file is an accessible .keras
”
196 “zip file.”
197 )
198 else:
199 raise ValueError(
200 f”File format not supported: filepath={filepath}. ”
201 “Keras 3 only supports V3 .keras
files and ”
(…)
210 “might have a different name).”
211 )
ValueError: File not found: filepath=trained_model.keras. Please ensure the file is an accessible .keras
zip file.
file is in same directory also .
how to solve this error ??
Armaan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.