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

python downoad_model.py error!!! #5

Open
1261972163 opened this issue Mar 10, 2018 · 3 comments
Open

python downoad_model.py error!!! #5

1261972163 opened this issue Mar 10, 2018 · 3 comments

Comments

@1261972163
Copy link

(tensorflow_p36) ubuntu@ip-172-31-25-141:/gitcode/test/chainer-simple-fast-rnn$ python downoad_model.py
Traceback (most recent call last):
File "downoad_model.py", line 6, in
urllib.urlretrieve(url,filename)
AttributeError: module 'urllib' has no attribute 'urlretrieve'
(tensorflow_p36) ubuntu@ip-172-31-25-141:
/gitcode/test/chainer-simple-fast-rnn$ vi downoad_model.py
(tensorflow_p36) ubuntu@ip-172-31-25-141:/gitcode/test/chainer-simple-fast-rnn$ python downoad_model.py
Traceback (most recent call last):
File "downoad_model.py", line 6, in
urllib.request.urlretrieve(url,filename)
File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/urllib/request.py", line 248, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
(tensorflow_p36) ubuntu@ip-172-31-25-141:
/gitcode/test/chainer-simple-fast-rnn$

@apple2373
Copy link
Owner

Hum... Google shut down the programmatically downloadable link ...

It's there but I do knot know how to make this programmatically downloadable....
https://drive.google.com/open?id=0B046sNk0DhCDTDRwRVZyZGg1bGM

You can manually download the model.

@1261972163
Copy link
Author

Thank you.

@1261972163
Copy link
Author

1261972163 commented Mar 11, 2018

hi,@apple2373
Today, model has been downloaded according to your suggestion, but the following error occurred. Please continue to give me some valuable advice, thank you.

(tensorflow_p36) ubuntu@ip-172-31-25-141:/gitcode/chainer-simple-fast-rnn$ python forward.py --img_fn sample.jpg --out_fn result20180310.jpg
/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/matplotlib/init.py:962: UserWarning: Duplicate key in file "/home/ubuntu/.config/matplotlib/matplotlibrc", line #2
(fname, cnt))
/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/matplotlib/init.py:962: UserWarning: Duplicate key in file "/home/ubuntu/.config/matplotlib/matplotlibrc", line #3
(fname, cnt))
Traceback (most recent call last):
File "forward.py", line 168, in
cls_score, bbox_pred = vgg_model(x,rois)
File "/home/ubuntu/gitcode/chainer-simple-fast-rnn/vgg.py", line 62, in call
h = F.dropout(F.relu(self.fc6(h)), train=train, ratio=0.5)
File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/chainer/functions/noise/dropout.py", line 116, in dropout
kwargs, train='train argument is not supported anymore. '
File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/chainer/utils/argument.py", line 4, in check_unexpected_kwargs
raise ValueError(message)
ValueError: train argument is not supported anymore. Use chainer.using_config
(tensorflow_p36) ubuntu@ip-172-31-25-141:/gitcode/chainer-simple-fast-rnn$

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