Commit Graph

6 Commits

Author SHA1 Message Date
bddppq
d8d82d14cf Add an option to suppress download progress (#4135)
* Add an option to suppress download progress

* Add a disable option to pbar to make it a no-op

* Document progress
2017-12-14 22:19:27 -05:00
Alykhan Tejani
429d66549e If available try to use requests instead of urllib for model_zoo.load_url (#3280)
* try to use requests instead of urllib for load_url if available

* add noqa to silence flake warnings

* remove urllib import into the except
2017-10-31 08:53:58 -04:00
SunYeop Lee
ae65236490 Fix typo 2017-07-04 15:19:05 -04:00
Bart Olsthoorn
79d4ac670c Add map_location to load_url (#1418) 2017-05-01 10:21:30 -04:00
Luke Yeager
e7c1e6a8e3 [pep8] Fix most lint automatically with autopep8
Here's the command I used to invoke autopep8 (in parallel!):

    git ls-files | grep '\.py$' | xargs -n1 -P`nproc` autopep8 -i

Several rules are ignored in setup.cfg. The goal is to let autopep8
handle everything which it can handle safely, and to disable any rules
which are tricky or controversial to address. We may want to come back
and re-enable some of these rules later, but I'm trying to make this
patch as safe as possible.

Also configures flake8 to match pep8's behavior.

Also configures TravisCI to check the whole project for lint.
2017-01-28 01:15:51 +01:00
Sam Gross
c9ec7fad52 Add model_zoo utility torch torch.utils (#424)
This was originally part of a torchvision PR, but I think it will be
useful outside vision, such as for distributing word embeddings.
2017-01-09 13:16:58 -05:00