hub: Failed to download model
From couple hours ago, I tried to download a new model to make classification… but it gave me this message `
INFO:tensorflow:Using /tmp/tfhub_modules to cache modules. INFO:tensorflow:Downloading TF-Hub Module ‘https://tfhub.dev/google/imagenet/mobilenet_v2_140_224/classification/1’. Traceback (most recent call last): File “retrain.py”, line 1333, in <module> tf.app.run(main=main, argv=[sys.argv[0]] + unparsed) File “/home/mido/.local/lib/python2.7/site-packages/tensorflow/python/platform/app.py”, line 126, in run _sys.exit(main(argv)) File “retrain.py”, line 1017, in main module_spec = hub.load_module_spec(FLAGS.tfhub_module) File “/home/mido/.local/lib/python2.7/site-packages/tensorflow_hub/native_module.py”, line 99, in load_module_spec path = compressed_module_resolver.get_default().get_module_path(path) File “/home/mido/.local/lib/python2.7/site-packages/tensorflow_hub/resolver.py”, line 385, in get_module_path return self._get_module_path(handle) File “/home/mido/.local/lib/python2.7/site-packages/tensorflow_hub/resolver.py”, line 467, in _get_module_path return resolver.get_module_path(handle) File “/home/mido/.local/lib/python2.7/site-packages/tensorflow_hub/resolver.py”, line 385, in get_module_path return self._get_module_path(handle) File “/home/mido/.local/lib/python2.7/site-packages/tensorflow_hub/compressed_module_resolver.py”, line 105, in _get_module_path self._lock_file_timeout_sec()) File “/home/mido/.local/lib/python2.7/site-packages/tensorflow_hub/resolver.py”, line 313, in atomic_download download_fn(handle, tmp_dir) File “/home/mido/.local/lib/python2.7/site-packages/tensorflow_hub/compressed_module_resolver.py”, line 101, in download response = url_opener.open(request) File “/usr/lib/python2.7/urllib2.py”, line 429, in open response = self._open(req, data) File “/usr/lib/python2.7/urllib2.py”, line 447, in _open ‘_open’, req) File “/usr/lib/python2.7/urllib2.py”, line 407, in _call_chain result = func(*args) File “/usr/lib/python2.7/urllib2.py”, line 1241, in https_open context=self._context) File “/usr/lib/python2.7/urllib2.py”, line 1198, in do_open raise URLError(err) urllib2.URLError: <urlopen error [Errno 101] Network is unreachable> ’
I tried to download an existed model to test the problem, but it gives me the same error! Any help ?? Note :I tried the image modules links on another PC and Internet connection… The links are not responding! could anyone try to test the module download process, which have been done by Retrain.py code ?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (4 by maintainers)
You can try to access by using the mirror image backup in China, Specifically, suppose you are having trouble in accessing
You switch to the mirror image in China, with following:
If you believe your issue is not due to “.dev”, please create a new issue with an error output of running:
$ wget 'https://tfhub.dev/google/nnlm-en-dim128/1?tf-hub-format=compressed' -O /tmp/module.tar.gzAvoid fallback to links such as “https://storage.googleapis.com/…”, as those may break at anytime with no warning. The only stable url for modules hosted in tfhub.dev are the “https://tfhub.dev/” ones.
Could you please provide an output of “wget ’ https://tfhub.dev/google/nnlm-en-dim128/1?tf-hub-format=compressed’ -O /tmp/module.tar.gz” command? This way we can determine whether the module can be downloaded outside of the library or not.
On Sun, May 20, 2018 at 10:50 AM mohamedaashraf notifications@github.com wrote:
You can download your the model need from url + ‘?tf-hub-format=compressed’, such as ‘https://tfhub.dev/google/imagenet/pnasnet_large/classification/2?tf-hub-format=compressed’ . This file will be named ‘x.tar.gz’, then make two file in ‘/tmp/tfhub_modules’ named such as ‘67f40766542914aa2dd2ec6923c4f353f6d0663c’ and ‘67f40766542914aa2dd2ec6923c4f353f6d0663c.descriptor.txt’ ,decompression 1.tar.gz to 67f40766542914aa2dd2ec6923c4f353f6d0663c.
Please see discussion in #97.
It appears many have installed software that takes control over “.dev” domain. TensorFlow Hub library then fails to reach the proper server (either with an SSL issue or other obscure error).
Users are highly recomended to switch off their “.dev” hijacking into “.test” [reserved for that purposed], since the “.dev” is nowadays a gTLD.
it does not work anymore. I can not download Tf_mode from any of two directories .otherwith, I want download Inception V3 mode, does anyone know the new directory?