Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A local file was found, but it seems to be incomplete or outdated because the auto file hash does not match the original value of ... #20271

Open
edge7Lux opened this issue Sep 19, 2024 · 0 comments
Assignees
Labels
keras-team-review-pending Pending review by a Keras team member. type:Bug

Comments

@edge7Lux
Copy link

Hi,

using Keras 3.5 and just running the following:

import keras

keras.applications.ConvNeXtSmall(
    include_preprocessing=True,
    input_tensor=None,
    weights="imagenet",
    input_shape=(224, 320, 3),
    include_top=False,
    pooling=None,
    name="convnext_large",
).summary()

I get:

A local file was found, but it seems to be incomplete or outdated because the auto file hash does not match the original value of 6fc8009faa2f00c1c1dfce59feea9b0745eb260a7dd11bee65c8e20843da6eab so we will re-download the data.
Downloading data from https://storage.googleapis.com/tensorflow/keras-applications/convnext/convnext_large_notop.h5
785596384/785596384 ━━━━━━━━━━━━━━━━━━━━ 19s 0us/step
Traceback (most recent call last):
File "/home/edge7/Desktop/projects/ing_edurso/wharfree-net/main_test.py", line 3, in
keras.applications.ConvNeXtSmall(
File "/home/edge7/.cache/pypoetry/virtualenvs/wharfree-net-IECYI3Oq-py3.10/lib/python3.10/site-packages/keras/src/applications/convnext.py", line 603, in ConvNeXtSmall
return ConvNeXt(
File "/home/edge7/.cache/pypoetry/virtualenvs/wharfree-net-IECYI3Oq-py3.10/lib/python3.10/site-packages/keras/src/applications/convnext.py", line 534, in ConvNeXt
weights_path = file_utils.get_file(
File "/home/edge7/.cache/pypoetry/virtualenvs/wharfree-net-IECYI3Oq-py3.10/lib/python3.10/site-packages/keras/src/utils/file_utils.py", line 306, in get_file
raise ValueError(
ValueError: Incomplete or corrupted file detected. The auto file hash does not match the provided value of 6fc8009faa2f00c1c1dfce59feea9b0745eb260a7dd11bee65c8e20843da6eab.

@sachinprasadhs sachinprasadhs added keras-team-review-pending Pending review by a Keras team member. type:Bug labels Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keras-team-review-pending Pending review by a Keras team member. type:Bug
Projects
None yet
Development

No branches or pull requests

2 participants