1. 26 Nov, 2021 1 commit
    • Philip Meier's avatar
      Download model weights in parallel for prototype CI (#4772) · 29f38f17
      Philip Meier authored
      * enable caching of model weights for prototype CI
      
      * syntax
      
      * syntax
      
      * make cache dir dynamic
      
      * increase verbosity
      
      * fix
      
      * use larget CI machine
      
      * revert debug output
      
      * [DEBUG] test env var usage in save_cache
      
      * retry
      
      * use checksum for caching
      
      * remove env vars because expansion is not working
      
      * syntax
      
      * cleanup
      
      * base caching on model-urls
      
      * relax regex
      
      * cleanup skips
      
      * cleanup
      
      * fix skipping logic
      
      * improve step name
      
      * benchmark without caching
      
      * benchmark with external download
      
      * debug
      
      * fix manual download location
      
      * debug again
      
      * download weights in the background
      
      * try parallel download
      
      * add missing import
      
      * use correct decoractor
      
      * up resource_class
      
      * fix wording
      
      * enable stdout passthrough to see download during test
      
      * remove linebreak
      
      * move checkout up
      
      * cleanup
      
      * debug failing test
      
      * temp fix
      
      * fix
      
      * cleanup
      
      * fix regex
      
      * remove explicit install of numpy
      29f38f17
  2. 28 Oct, 2021 1 commit
  3. 04 Oct, 2021 2 commits
    • Nicolas Hug's avatar
      Fix all outstanding flake8 issues (#4535) · b81d189d
      Nicolas Hug authored
      b81d189d
    • 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
  4. 27 Sep, 2021 1 commit
    • Loi Ly's avatar
      Added gray image support to `adjust_saturation` function (#4480) · f483e71b
      Loi Ly authored
      * update channels parameter to every calling to check_functional_vs_PIL_vs_scripted
      
      * update adjust_saturation
      
      * update docstrings for functional transformations
      
      * parametrize channels
      
      * update docstring of ColorJitter class
      
      * move channels to class's parameter
      
      * remove testing channels for geometric transforms
      
      * revert redundant changes
      
      * revert redundant changes
      
      * update grayscale test cases for randaugment, autoaugment, trivialaugment
      
      * update docstrings of randaugment, autoaugment, trivialaugment
      
      * update docstring of ColorJitter
      
      * fix adjust_hue's docstring
      
      * change test equal tolerance
      
      * refactor grayscale tests
      
      * make get_grayscale_test_image private
      f483e71b
  5. 24 Sep, 2021 1 commit
  6. 16 Sep, 2021 1 commit
  7. 19 Aug, 2021 1 commit
  8. 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
  9. 06 Aug, 2021 1 commit
  10. 02 Aug, 2021 1 commit
  11. 14 Jul, 2021 1 commit
  12. 25 Jun, 2021 1 commit
  13. 14 Jun, 2021 1 commit
  14. 09 Jun, 2021 2 commits
  15. 03 Jun, 2021 1 commit
  16. 02 Jun, 2021 1 commit
  17. 27 May, 2021 1 commit
    • Vasilis Vryniotis's avatar
      Speedup the slow tests of detection models (#3929) · 4c563846
      Vasilis Vryniotis authored
      * Speed up keypoint and retina.
      
      * Update keypoint expected file
      
      * Speed up fasterrcnn_resnet50_fpn.
      
      * Speed up maskrcnn_resnet50_fpn.
      
      * Updating params to resolve flakiness.
      
      * limit runs to those 4 tests
      
      * Relaxing precision to resolve flakiness
      
      * Undo test filtering
      4c563846
  18. 22 May, 2021 1 commit
  19. 17 May, 2021 1 commit
  20. 11 May, 2021 1 commit
  21. 04 May, 2021 2 commits
  22. 28 Apr, 2021 1 commit
    • Nicolas Hug's avatar
      [FBcode->GH] Parametrize test_perspective (#3748) (#3749) · 1b0bd0e3
      Nicolas Hug authored
      Summary:
      Pull Request resolved: https://github.com/pytorch/vision/pull/3748
      
      This PR parametrizes the `perspective`-related tests, and avoids having deeply nested for-loops which will help debugging. "What" gets tested is left unchanged.
      
      The newly-introduced `cpu_and_gpu()` generator along with the `dont_collect` mark is a logic that allows to not run CPU tests on GPU machines (and vice versa).
      
      Reviewed By: fmassa
      
      Differential Revision: D27908299
      
      fbshipit-source-id: 24a10a89fe90ae0a9e62de4bc7e768a669ebf212
      1b0bd0e3
  23. 26 Apr, 2021 1 commit
  24. 21 Apr, 2021 2 commits
  25. 15 Mar, 2021 1 commit
  26. 01 Mar, 2021 1 commit
  27. 18 Feb, 2021 1 commit
    • Philip Meier's avatar
      [POC] Base class for dataset tests (#3402) · 22c548b0
      Philip Meier authored
      * add base class for datasets tests
      
      * add better type hints
      
      * add documentation to subclasses
      
      * add utility functions to create files / folders of random images and videos
      
      * fix imports
      
      * remove class properties
      
      * fix smoke test
      
      * fix type hints
      
      * fix random size generation
      
      * add Caltech256 as example
      
      * add utility function to create grid of combinations
      
      * add CIFAR100? as example
      
      * lint
      
      * add missing import
      
      * improve documentation
      
      * create 1 frame videos by default
      
      * remove obsolete check
      
      * return path of files created with utility functions
      
      * [test] close PIL file handles before deletion
      
      * fix video folder creation
      
      * generalize file handle closing
      
      * fix lazy imports
      
      * add test for transforms
      
      * fix explanation comment
      
      * lint
      
      * force load opened PIL images
      
      * lint
      
      * copy default config to avoid inplace modification
      
      * enable additional arg forwarding
      22c548b0
  28. 12 Feb, 2021 2 commits
  29. 04 Jan, 2021 1 commit
    • Vasilis Vryniotis's avatar
      Speed up CI runtime (#3189) · 4d2d8bb0
      Vasilis Vryniotis authored
      * Speedup test_ucf101 (#2623 
      
      * Speedup Cmake builds (#3186)
      
      * Speedup test_autoaugment (#3190)
      
      * Speedup DeformConvTester (#3191)
      
      * Speedup InceptionV3 and GoogleNet on Windows (#3196)
      4d2d8bb0
  30. 02 Dec, 2020 1 commit
  31. 27 Nov, 2020 1 commit
    • Aditya Oke's avatar
      Add utility to draw bounding boxes (#2785) · 240210c9
      Aditya Oke authored
      
      
      * initital prototype
      
      * flake
      
      * Adds documentation
      
      * minimal working bboxes
      
      * Adds label display
      
      * adds colors :-)
      
      * adds suggestions and fixes CI
      
      * handles image of dim 4
      
      * fixes image handling
      
      * removes dev file
      
      * adds suggested changes
      
      * Updating the API.
      
      * Update test.
      
      * Implementing code review improvements.
      
      * Further refactoring and adding test.
      
      * Replace random to white to reduce size and change font on tests.
      Co-authored-by: default avatarVasilis Vryniotis <vvryniotis@fb.com>
      240210c9
  32. 20 Nov, 2020 1 commit
  33. 06 Nov, 2020 2 commits
    • vfdev's avatar
      House keeping improvements: (#2964) · f655e6a7
      vfdev authored
      - fixed problem with error computation between results
      - refactored tensor cast for resize
      - fixed round usage
      f655e6a7
    • Vasilis Vryniotis's avatar
      Fix flakiness on detection tests (#2966) · 7f7ff056
      Vasilis Vryniotis authored
      * Simplify the ACCEPT=True logic in assertExpected().
      
      * Separate the expected filename estimation from assertExpected
      
      * Unflatten expected values.
      
      * Assert for duplicate scores if primary check fails.
      
      * Remove custom exceptions for algorithms and add a compact function for shrinking large ouputs.
      
      * Removing unused variables.
      
      * Add warning and comments.
      
      * Re-enable all autocast unit-test for detection and marking the tests as skipped in partial validation.
      
      * Move test skip at the end.
      
      * Changing the warning message.
      7f7ff056
  34. 05 Nov, 2020 1 commit