chainer-simple-fast-rnn icon indicating copy to clipboard operation
chainer-simple-fast-rnn copied to clipboard

python downoad_model.py error!!!

Open 1261972163 opened this issue 6 years ago • 3 comments

(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$

1261972163 avatar Mar 10 '18 16:03 1261972163

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.

apple2373 avatar Mar 10 '18 18:03 apple2373

Thank you.

1261972163 avatar Mar 10 '18 23:03 1261972163

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$

1261972163 avatar Mar 11 '18 14:03 1261972163