hub icon indicating copy to clipboard operation
hub copied to clipboard

Cannot download model

Open pawel12 opened this issue 8 years ago • 4 comments

Hello,

I'm not able to download any pre-trained mode. Neither from https://github.com/tensorflow/hub/blob/master/docs/modules/image.md nor using retrain.py script. Is there some network issue?

pawel12 avatar May 23 '18 07:05 pawel12

Hi Pawel,

Can you try running the command:

wget 'https://tfhub.dev/google/nnlm-en-dim128/1?tf-hub-format=compressed' -O /tmp/module.tar.gz

and see if the download works?

svsgoogle avatar May 23 '18 15:05 svsgoogle

Hi, Thank you for respond. I tried the command but it doesn't work. The problem is my network not tensor-flow hub because if I connect using connection from my phone it works. This is a bit strange because I don't have any proxy or anything and this is the very first case I cannot download something...

pawel12 avatar May 29 '18 07:05 pawel12

Thanks for your analysis. If it's not caused by TensorFlow Hub, and does not affect many users, please allow me to close this issue.

arnoegw avatar May 29 '18 07:05 arnoegw

I did have the same problem and it wasn't connected with TensorFlow Hub, but let me post my solution here for other people experiencing something similar.

I use Pow with .dev top level domain, that I configured before it was broadly used on the internet. So I thought that may cause the problem. First I verified that indeed the domain is resolved to my localhost:

> ping tfhub.dev
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.061 ms

Then I read about Pow TLD configuration and found that all I have to do is to remove dev resolver:

sudo rm /etc/resolver/dev

And now it works. Hope it helps someone. 😄

jembezmamy avatar May 29 '18 18:05 jembezmamy