Skip to content

Conversation

lanpa
Copy link
Contributor

@lanpa lanpa commented Oct 31, 2017

There is "HTTP Error 500" for http. change url to https fixes this.
(link in the official cifar page also says https://)

There is "HTTP Error 500" for http. change url to https fixes this.
@soumith
Copy link
Member

soumith commented Oct 31, 2017

The http works fine for me, i just checked...

@apaszke
Copy link
Contributor

apaszke commented Oct 31, 2017

It might work, but it's better to use https if we can

@soumith
Copy link
Member

soumith commented Oct 31, 2017

no, https is giving subtle problems based on user machines and python version. lets stick to http please (we verify hash anyways)

@apaszke
Copy link
Contributor

apaszke commented Oct 31, 2017

It's md5, so it's not really secure.

@soumith
Copy link
Member

soumith commented Oct 31, 2017

@lanpa is it still happening for you? or is the 500-internal-error an intermittent message you get sometimes?
@apaszke let's switch to a more secure hash than md5 then.

@lanpa
Copy link
Contributor Author

lanpa commented Oct 31, 2017

@soumith You are right, that error happens occasionally. How about

try 
    download_url(http_url, ...) 
except 
    download_url(https_url, ...)

to handle them all?

@soumith
Copy link
Member

soumith commented Oct 31, 2017

yes i think that's a good idea.
Actually the reverse:

try:
https_url
except:
http_url

@soumith soumith merged commit f9df932 into pytorch:master Oct 31, 2017
@soumith
Copy link
Member

soumith commented Oct 31, 2017

thanks @lanpa !

@alykhantejani
Copy link
Contributor

@soumith @apaszke should we update this download function in the same way that we did for pytorch's load_url, I think that'd be cleaner and more consistent?

@lanpa
Copy link
Contributor Author

lanpa commented Nov 1, 2017

@alykhantejani What if we also move model_zoo.py from torch to torchvision? Because it does not referenced by functions in torch, the only invokers lie in torchvision/model/*.py.

@fmassa
Copy link
Member

fmassa commented Nov 12, 2017

@lanpa originally model_zoo.py was in torchvision, but we decided to move it to pytorch because it can be used elsewhere (like torchtext for example). I think it's better to leave it there.

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

Successfully merging this pull request may close these issues.

5 participants