1. 04 Oct, 2021 1 commit
    • Philip Meier's avatar
      Add ufmt (usort + black) as code formatter (#4384) · 5f0edb97
      Philip Meier authored
      
      
      * add ufmt as code formatter
      
      * cleanup
      
      * quote ufmt requirement
      
      * split imports into more groups
      
      * regenerate circleci config
      
      * fix CI
      
      * clarify local testing utils section
      
      * use ufmt pre-commit hook
      
      * split relative imports into local category
      
      * Revert "split relative imports into local category"
      
      This reverts commit f2e224cde2008c56c9347c1f69746d39065cdd51.
      
      * pin black and usort dependencies
      
      * fix local test utils detection
      
      * fix ufmt rev
      
      * add reference utils to local category
      
      * fix usort config
      
      * remove custom categories sorting
      
      * Run pre-commit without fixing flake8
      
      * got a double import in merge
      Co-authored-by: default avatarNicolas Hug <nicolashug@fb.com>
      5f0edb97
  2. 21 Sep, 2021 1 commit
  3. 18 Aug, 2021 1 commit
    • Alex Lin's avatar
      Replace get_tmp_dir() with tmpdir fixture in tests (#4280) · 98cb4ead
      Alex Lin authored
      
      
      * Replace in test_datasets*
      
      * Replace in test_image.py
      
      * Replace in test_transforms_tensor.py
      
      * Replace in test_internet.py and test_io.py
      
      * get_list_of_videos is util function still use get_tmp_dir
      
      * Fix get_list_of_videos siginiture
      
      * Add get_tmp_dir import
      
      * Modify test_datasets_video_utils.py for test to pass
      
      * Fix indentation
      
      * Replace get_tmp_dir in util functions in test_dataset_sampler.py
      
      * Replace get_tmp_dir in util functions in test_dataset_video_utils.py
      
      * Move get_tmp_dir() to datasets_utils.py and refactor
      
      * Fix pylint, indentation and imports
      
      * import shutil to common_util.py
      
      * Fix function signiture
      
      * Remove get_list_of_videos under context manager
      
      * Move get_list_of_videos to common_utils.py
      
      * Move get_tmp_dir() back to common_utils.py
      
      * Fix pylint and imports
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      98cb4ead
  4. 22 Jul, 2021 1 commit
    • Philip Meier's avatar
      Mock redirection logic for tests (#4197) · 75970b61
      Philip Meier authored
      * mock out redirect behavior for testing
      
      * revert unrelated change
      
      * simplify
      
      * move tests out of internet tests
      
      * replace urls with dummys
      
      * improve checking of mock calls
      75970b61
  5. 25 Jun, 2021 1 commit
  6. 23 Jun, 2021 2 commits
  7. 17 Mar, 2021 1 commit
  8. 15 Mar, 2021 1 commit
  9. 11 Mar, 2021 1 commit
  10. 02 Feb, 2021 1 commit
  11. 15 Jan, 2021 1 commit
  12. 18 Nov, 2020 1 commit
    • Vasilis Vryniotis's avatar
      Support specifying output channels in io.image.read_image (#2988) · 4d6ba678
      Vasilis Vryniotis authored
      * Adding output channels implementation for pngs.
      
      * Adding tests for png.
      
      * Adding channels in the API and documentation.
      
      * Fixing formatting.
      
      * Refactoring test_image.py to remove huge grace_hopper_517x606.pth file from assets and reduce duplicate code. Moving jpeg assets used by encode and write unit-tests on their separate folders.
      
      * Adding output channels implementation for jpegs. Fix asset locations.
      
      * Add tests for JPEG, adding the channels in the API and documentation and adding checks for inputs.
      
      * Changing folder for unit-test.
      
      * Fixing windows flakiness, removing duplicate test.
      
      * Replacing components to channels.
      
      * Adding reference for supporting CMYK.
      
      * Minor changes: num_components to output_components, adding comments, fixing variable name etc.
      
      * Reverting output_components to num_components.
      
      * Replacing decoding with generic method on tests.
      
      * Palette converted to Gray.
      4d6ba678
  13. 01 Apr, 2020 1 commit
  14. 31 Mar, 2020 1 commit
    • Philip Meier's avatar
      Remove six dependency (#2017) · 42b8d462
      Philip Meier authored
      * remove six from python code
      
      * remove six from setup.py
      
      * remove six from tests
      
      * remove six from references
      
      * remove six from packaging
      
      * revert str to torch._six._string_classes
      
      * revert str to torch._six._string_classes
      42b8d462
  15. 10 Dec, 2019 1 commit
  16. 24 Sep, 2019 1 commit
    • Ardalan's avatar
      add tar.xz archive handler (#1361) · a15ff20f
      Ardalan authored
      * add tar.xz archive handler
      
      * update unittest for tar.xz archive
      
      * remove .tar.xz unittest
      
      * add separate .tar.xz unittest
      
      * update PY2 compatibility
      a15ff20f
  17. 09 Sep, 2019 1 commit
    • Francisco Massa's avatar
      Add CircleCI (v2) (#1298) · e4d50039
      Francisco Massa authored
      * [WIP] Add CircleCI for CI
      
      * Make jobs only run on master
      
      * Add initial CI
      
      * [wip] testing if works
      
      * Trying some basic GPU tests
      
      * [WIP] maybe it will work?
      
      * [WIP] One more try
      
      * Pin versions
      
      * Simplify and reuse
      
      * Fix
      
      * [WIP] testing windows
      
      * [WIP] testing windows
      
      * Try windows
      
      * Try Windows
      
      * Try windows
      
      * Try windows
      
      * Try windows
      
      * Try windows
      
      * Try windows
      
      * Try windows
      
      * Windows speedup
      
      * Windows multicores
      
      * Add parallel flags for Windows
      
      * Skip some tests on Windows
      
      * Sync config.yml and config.yml.in
      
      * Regenerate
      
      * Run all tests
      
      * Limit python and cuda version for finding pytorch
      
      * Skip darwin for previous check
      
      * Add description
      
      * Fix logic
      
      * Remove space
      
      * Add CUDA test back
      
      * Add back .travis.yml for now and remove duplicate test
      
      * Add newline
      e4d50039
  18. 28 Aug, 2019 1 commit
  19. 26 Jul, 2019 1 commit
  20. 13 Jun, 2019 2 commits
  21. 03 Jun, 2019 1 commit
    • Philip Meier's avatar
      [WIP] Add test for ImageNet (#976) · 7716aba5
      Philip Meier authored
      * added fake data
      
      * fixed fake data
      
      * renamed extract and download methods and added functionality
      
      * added raw fake data
      
      * refactored imagenet and added test
      
      * flake8
      
      * added fake devkit and mocked download_url
      
      * reversed uncommenting
      
      * added mock to CI
      
      * fixed tests for imagefolder
      
      * flake8
      7716aba5
  22. 29 May, 2019 1 commit
    • Francisco Massa's avatar
      [WIP] Add tests for datasets (#966) · c59f0474
      Francisco Massa authored
      * WIP
      
      * WIP: minor improvements
      
      * Add tests
      
      * Fix typo
      
      * Use download_and_extract on caltech, cifar and omniglot
      
      * Add a print message during extraction
      
      * Remove EMNIST from test
      c59f0474
  23. 25 Apr, 2019 1 commit
  24. 09 Apr, 2019 1 commit
  25. 01 Mar, 2019 1 commit