Skip to content

Error when downloading pretrained resnet200 #1

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

Closed
lwoiceshyn opened this issue Aug 29, 2017 · 4 comments
Closed

Error when downloading pretrained resnet200 #1

lwoiceshyn opened this issue Aug 29, 2017 · 4 comments

Comments

@lwoiceshyn
Copy link

Downloading: "https://www.dropbox.com/s/tchq8fbdd4wabjx/fbresnet_200-37304a01b.pth?dl=1" to

/home/leow/.torch/models/fbresnet_200-37304a01b.pth
Traceback (most recent call last):
File "/home/leow/anaconda3/lib/python3.6/urllib/request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/home/leow/anaconda3/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/leow/anaconda3/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/leow/anaconda3/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/leow/anaconda3/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/home/leow/anaconda3/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/home/leow/anaconda3/lib/python3.6/http/client.py", line 1400, in connect
server_hostname=server_hostname)
File "/home/leow/anaconda3/lib/python3.6/ssl.py", line 401, in wrap_socket
_context=self, _session=session)
File "/home/leow/anaconda3/lib/python3.6/ssl.py", line 808, in init
self.do_handshake()
File "/home/leow/anaconda3/lib/python3.6/ssl.py", line 1061, in do_handshake
self._sslobj.do_handshake()
File "/home/leow/anaconda3/lib/python3.6/ssl.py", line 683, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

It seems that the download link doesn't work.

@rwightman
Copy link
Owner

That's a link to my own dropbox. It worked last time I tried, and still seems to work for me. Try manually if not. There are limits on how much can be downloaded so maybe they were hit. If anything I'll be stripping those links, not replacing them as I do not have a better or alternate hosting solution...

@rwightman
Copy link
Owner

You can also re-create the pth if you use the https://github.com/clcarwin/convert_torch_to_pytorch converter on the ResNet-200 t7 from https://github.com/facebook/fb.resnet.torch/tree/master/pretrained

@lwoiceshyn
Copy link
Author

lwoiceshyn commented Aug 30, 2017 via email

@rwightman
Copy link
Owner

Right, that's a problem.

If you've got torch7 installed, from the th console you can do the following to convert it from a cuda model to a cpu float which will work with the conversion script...

th> import 'cudnn'
th> model = torch.load('./resnet-200.t7')
th> model = model:float()
th> torch.save('./resnet-200-cpu.t7', model)

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