Skip to content

Bug: sudden 403 while loading i3d-kinetics model using tensorflow hub on google colab #932

@Endervamp

Description

@Endervamp

What happened?

when i'm loading i3d-kinetics model from tensorflow hub on google colab i suddenly got HTTP Error 403: Forbidden.

I did notice that the urls are being redirected in the browser, so for instance:
https://www.kaggle.com/models/deepmind/i3d-kinetics/tensorFlow1/400/1?tfhub-redirect=true
when i open the this url:

  •  https://tfhub.dev/deepmind/i3d-kinetics-400/1 in a new browser tab
    

it gets redirected into:

this all worked without any errors before

tensorflow version i use is: 2.19.0
tensorflow hub version i use is: 0.16.1

Relevant code

import tensorflow as tf
import tensorflow_hub as hub
import numpy as np

model_ar = hub.load("https://tfhub.dev/deepmind/i3d-kinetics-400/1").signatures["default"]

Relevant log output

---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
/tmp/ipython-input-46415245.py in <cell line: 0>()
----> 1 model_ar = hub.load("https://tfhub.dev/deepmind/i3d-kinetics-400/1").signatures["default"]

22 frames
/usr/lib/python3.12/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)
    637 class HTTPDefaultErrorHandler(BaseHandler):
    638     def http_error_default(self, req, fp, code, msg, hdrs):
--> 639         raise HTTPError(req.full_url, code, msg, hdrs, fp)
    640 
    641 class HTTPRedirectHandler(BaseHandler):

HTTPError: HTTP Error 403: Forbidden

tensorflow_hub Version

0.16.1

TensorFlow Version

2.19.0

Other libraries

No response

Python Version

3.x

OS

Windows

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions