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

Attempting to load SegFormer preset "segformer_b0_imagenet" results in 403 error #2459

Open
luca-mala opened this issue Jun 25, 2024 · 0 comments
Assignees

Comments

@luca-mala
Copy link

Current Behavior:

Downloading from https://www.kaggle.com/api/v1/models/keras/segformer/keras/segformer_b0_imagenet/2/download/config.json...
---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/kagglehub/exceptions.py](https://localhost:8080/#) in kaggle_api_raise_for_status(response, resource_handle)
     57     try:
---> 58         response.raise_for_status()
     59     except requests.HTTPError as e:

10 frames
HTTPError: 403 Client Error: Forbidden for url: https://www.kaggle.com/api/v1/models/keras/segformer/keras/segformer_b0_imagenet/2/download/config.json

Expected Behavior:

Model preset should load just fine.

Steps To Reproduce:

Execute the provided code:

model = keras_cv.models.SegFormer.from_preset(
      "segformer_b0_imagenet",
      num_classes=NUM_CLASSES,
      input_shape=(224,224,3),
      load_weights=True
  )

Gist:
https://colab.research.google.com/gist/luca-mala/c5625210cb4c46217fdd50cf85447374/untitled1.ipynb

Version:

0.9.0

Anything else:

Please note that the provided config.json is empty to begin with. You can check for yourself by downloading from the original Kaggle URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants