1. 21 Feb, 2019 1 commit
  2. 18 Feb, 2019 2 commits
  3. 14 Feb, 2019 4 commits
  4. 13 Feb, 2019 4 commits
  5. 12 Feb, 2019 2 commits
  6. 11 Feb, 2019 1 commit
  7. 25 Jan, 2019 1 commit
  8. 08 Jan, 2019 3 commits
    • Will Price's avatar
      [travis] Record code coverage and display on README (#703) · 98ca260b
      Will Price authored
      Test installed version of package
      
      To test against the installed version of the package (which is
      preferably since this can catch installation file inclusion bugs) we
      have to deal with quirks of coverage.py. By default the ecosystem is
      set up to do development coverage tests (e.g. in src, or by using `pip
      install -e .` or `python setup.py develop`).
      
      We want to test against the version installed, to do this we have to
      find the install path which we'll then pass to the `--cov` arg added by
      `pytest-cov`. To do this, we have to cd out of the current folder, and
      import the installed version and get it's install path (if we don't cd
      out, then we end up getting the existing directory in the cwd since by
      default cwd is on `sys.path`)
      
      Once we have the install path, we pass that to the `--cov` of pytest,
      however we also want to rewrite the paths for codecov to pick them up on
      the website, if they don't have to code coverage with local paths, they
      don't register is properly.
      
      In order to that, we have a .coveragerc file that has the contents:
      
      ```
      [paths]
      source =
          torchvision
          /**/site-packages/torchvision
      ```
      
      This tells codecov to treat all paths with those prefixes as the same,
      so anything like
      `/home/travis/miniconda/envs/test-environment/lib/python2.7/site-packages/torchvision/models/__init__.py`
      would be treated the same as
      `torchvision/models/__init__.py` after running the coverage combination
      command. The first path seems to be special, in that all subsequent
      paths are rewritten to that one.
      
      Once we collect coverage, we then run `coverage run` to rewrite the
      installation paths in the coverage file, `.coverage`, to those expected
      by codecov.
      
      Phew. And that's it.
      
      N.B: Whilst adding test/__init__.py does solve the issue, it also results in
      PWD being added to the path, and then we'll test the development version
      of the package, and not the installed version (see
      https://docs.pytest.org/en/latest/goodpractices.html#tests-as-part-of-application-code)
      98ca260b
    • surgan12's avatar
      Doc changes (#711) · 8f0ef5a7
      surgan12 authored
      * doc change
      
      * doc changes
      
      * lint_checks
      
      * Update transforms.py
      8f0ef5a7
    • Will Price's avatar
      Add downloads and docs badge to README (#702) · 84896a6e
      Will Price authored
      84896a6e
  9. 30 Dec, 2018 1 commit
    • surgan12's avatar
      normalise updates (#699) · 21153802
      surgan12 authored
      * normalise
      
      * some changes
      
      * Update functional.py
      
      * Update functional.py
      
      * code changes
      21153802
  10. 25 Dec, 2018 2 commits
  11. 21 Dec, 2018 1 commit
  12. 20 Dec, 2018 1 commit
  13. 18 Dec, 2018 1 commit
  14. 17 Dec, 2018 1 commit
    • surgan12's avatar
      modes added (#688) · be6f6c29
      surgan12 authored
      * modes added
      
      * tests_added
      
      * Update test_transforms.py
      
      * Update test_transforms.py
      
      * Update test_transforms.py
      be6f6c29
  15. 14 Dec, 2018 1 commit
  16. 13 Dec, 2018 3 commits
  17. 11 Dec, 2018 1 commit
  18. 06 Dec, 2018 3 commits
    • Benjamin Pinaya's avatar
      VOCSegmentation, VOCDetection, linting passing, examples. (#663) · e489abc6
      Benjamin Pinaya authored
      
      
      * VOC Dataset, linted, flak8 passing, samples on gist.
      
      * Double backtick on values.
      
      * Apply suggestions from code review
      
      Add suggestions from @ellisbrown, using dict of dicts instead of array index.
      Co-Authored-By: default avatarbpinaya <bpg_92@hotmail.com>
      
      * Fixed errors with the new comments.
      
      * Added documentation on RST
      
      * Removed getBB, added parse_voc_xml, variable naming change.
      
      * Removed unused variable, removed VOC_CLASSES, two new gists for test.
      e489abc6
    • Yuxin Wu's avatar
      Zero-init the residual branch in resnet (#498) · 4cc6f45a
      Yuxin Wu authored
      * Zero-init the residual branch in resnet
      
      * Add zero_init_residual as an option
      4cc6f45a
    • Will Frey's avatar
      Add scipy as a dependency to setup.py (#675) · 5123ded4
      Will Frey authored
      * Add scipy as a dependency to setup.py
      
      `scipy` is imported in both the `torchvision.datasets.svhn` module and the `torchvision.models.inception` module.
      
      * Update setup.py
      
      Make scipy optional. It can be installed with `pip install torchvision[scipy]`.
      5123ded4
  19. 04 Dec, 2018 3 commits
  20. 27 Nov, 2018 1 commit
  21. 12 Nov, 2018 2 commits
  22. 06 Nov, 2018 1 commit