Код: Выделить всё
modelvggNew = keras.models.load_model('/kaggle/working/vgg15.keras')
Код: Выделить всё
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[33], line 1
----> 1 keras.models.load_model('/kaggle/working/vgg15.keras')
File /usr/local/lib/python3.10/site-packages/keras/src/saving/saving_api.py:185, in load_model(filepath, custom_objects, compile, safe_mode)
183 return legacy_h5_format.load_model_from_hdf5(filepath)
184 elif str(filepath).endswith(".keras"):
--> 185 raise ValueError(
186 f"File not found: filepath={filepath}. "
187 "Please ensure the file is an accessible `.keras` "
188 "zip file."
189 )
190 else:
191 raise ValueError(
192 f"File format not supported: filepath={filepath}. "
193 "Keras 3 only supports V3 `.keras` files and "
(...)
202 "might have a different name)."
203 )
ValueError: File not found: filepath=/kaggle/working/vgg15.keras. Please ensure the file is an accessible `.keras` zip file.
Подробнее здесь: https://stackoverflow.com/questions/779 ... keras-file