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

ValueError: Expected 303 See other HTTP response but received code 200 #32

Closed
b-zhang93 opened this issue Nov 26, 2020 · 3 comments
Closed
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@b-zhang93
Copy link

❓ Questions and Help

Whenever I try to use the tensorflow model code in Google Colab I get this error:

ValueError: Expected 303 See other HTTP response but received code 200

Traceback to this line of code:

tf_model = tf_hub.load(models.stt_models.en.latest.tf)

Does anyone know what is causing this issue?

@b-zhang93 b-zhang93 added the help wanted Extra attention is needed label Nov 26, 2020
@snakers4
Copy link
Owner

I found the cause of the error. Well, Google being Google tries to close all of the opportunities for third party developers to promote their stuff, it was possible to provide a directly hosted model, but now you should only use links like:

https://tfhub.dev/silero/silero-stt/en/1

instead of direct model links like

https://silero-models.ams3.cdn.digitaloceanspaces.com/models/en/en_v2_tf.tar.gz

i.e. looks like Google intends to cut any strings to third party resources.

Given zero traffic / discovery from their hub, I guess I will not support our models there.
I will fix all of the examples.
In the meantime you can use this work-around:

torch.hub.download_url_to_file(models.stt_models.en.latest.tf, 'tf_model.tar.gz')
!mkdir tf_model
!tar xzfv tf_model.tar.gz -C tf_model
tf_model = tf.saved_model.load('tf_model')

@snakers4
Copy link
Owner

Plz check that this solves your issue as well 1a855a3

@snakers4
Copy link
Owner

snakers4 commented Dec 2, 2020

Please re-open / open new ticket if this does not solve your issue

@snakers4 snakers4 closed this as completed Dec 2, 2020
@snakers4 snakers4 added the bug Something isn't working label Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants