1. 25 May, 2021 1 commit
  2. 24 May, 2021 1 commit
  3. 19 May, 2021 1 commit
  4. 17 May, 2021 1 commit
  5. 13 May, 2021 1 commit
  6. 10 May, 2021 1 commit
    • vfdev's avatar
      Added antialias option to transforms.functional.resize (#3761) · b56f17ae
      vfdev authored
      * WIP Added antialias option to transforms.functional.resize
      
      * Updates according to the review
      
      * Excluded these C++ files for iOS build
      
      * Added support for mixed downsampling/upsampling
      
      * Fixed heap overflow caused by explicit loop unrolling
      
      * Applied PR review suggestions
      - used pytest parametrize instead unittest
      - cast to scalar_t ptr
      - removed interpolate aa files for ios/android keeping original cmake version
      b56f17ae
  7. 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
  8. 19 Apr, 2021 1 commit
  9. 08 Mar, 2021 1 commit
  10. 04 Mar, 2021 1 commit
  11. 15 Dec, 2020 1 commit
  12. 14 Dec, 2020 1 commit
    • Vasilis Vryniotis's avatar
      Implement all AutoAugment transforms + Policies (#3123) · 83171d6a
      Vasilis Vryniotis authored
      
      
      * Invert Transform (#3104)
      
      * Adding invert operator.
      
      * Make use of the _assert_channels().
      
      * Update upper bound value.
      
      * Remove private doc from invert, create or reuse generic testing methods to avoid duplication of code in the tests. (#3106)
      
      * Create posterize transformation and refactor common methods to assist reuse. (#3108)
      
      * Implement the solarize transform. (#3112)
      
      * Implement the adjust_sharpness transform (#3114)
      
      * Adding functional operator for sharpness.
      
      * Adding transforms for sharpness.
      
      * Handling tiny images and adding a test.
      
      * Implement the autocontrast transform. (#3117)
      
      * Implement the equalize transform (#3119)
      
      * Implement the equalize transform.
      
      * Turn off deterministic for histogram.
      
      * Fixing test. (#3126)
      
      * Force ratio to be float to avoid numeric overflows on blend. (#3127)
      
      * Separate the tests of Adjust Sharpness from ColorJitter. (#3128)
      
      * Add AutoAugment Policies and main Transform (#3142)
      
      * Separate the tests of Adjust Sharpness from ColorJitter.
      
      * Initial implementation, not-jitable.
      
      * AutoAugment passing JIT.
      
      * Adding tests/docs, changing formatting.
      
      * Update test.
      
      * Fix formats
      
      * Fix documentation and imports.
      
      * Apply changes from code review:
      - Move the transformations outside of AutoAugment on a separate method.
      - Renamed degenerate method for sharpness for better clarity.
      
      * Update torchvision/transforms/functional.py
      Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
      
      * Apply more changes from code review:
      - Add InterpolationMode parameter.
      - Move all declarations away from AutoAugment constructor and into the private method.
      
      * Update documentation.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      
      * Apply changes from code review:
      - Refactor code to eliminate as any to() and clamp() as possible.
      - Reuse methods where possible.
      - Apply speed ups.
      
      * Replacing pad.
      Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      83171d6a
  13. 02 Dec, 2020 1 commit
    • Zhengyang Feng's avatar
      Fill color support for tensor affine transforms (#2904) · 21deb4d0
      Zhengyang Feng authored
      
      
      * Fill color support for tensor affine transforms
      
      * PEP fix
      
      * Docstring changes and float support
      
      * Docstring update for transforms and float type cast
      
      * Cast only for Tensor
      
      * Temporary patch for lack of Union type support, plus an extra unit test
      
      * More plausible bilinear filling for tensors
      
      * Keep things simple & New docstrings
      
      * Fix lint and other issues after merge
      
      * make it in one line
      
      * Docstring and some code modifications
      
      * More tests and corresponding changes for transoforms and docstring changes
      
      * Simplify test configs
      
      * Update test_functional_tensor.py
      
      * Update test_functional_tensor.py
      
      * Move assertions
      Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
      21deb4d0
  14. 27 Nov, 2020 2 commits
  15. 06 Nov, 2020 1 commit
  16. 07 Oct, 2020 2 commits
    • Tejan Karmali's avatar
      Added GaussianBlur transform (#2658) · 4106dbb8
      Tejan Karmali authored
      
      
      * Added GaussianBlur transform
      
      * fixed linting
      
      * supports fixed radius for kernel
      
      * [WIP] New API for gaussian_blur
      
      * Gaussian blur with kernelsize and sigma API
      
      * Fixed implementation and updated tests
      
      * Added large input case and refactored gt into a file
      
      * Updated docs
      
      * fix kernel dimesnions order while creating kernel
      
      * added tests for exception handling of gaussian blur
      
      * fix linting, bug in tests
      
      * Fixed failing tests, refactored code and other minor fixes
      Co-authored-by: default avatarvfdev-5 <vfdev.5@gmail.com>
      4106dbb8
    • vfdev's avatar
      754c954f
  17. 05 Oct, 2020 2 commits
  18. 18 Sep, 2020 1 commit
    • vfdev's avatar
      Added tests on batch of tensors to check transforms (#2584) · c4dcfb06
      vfdev authored
      * [WIP] Added tests on batch of tensors
      
      * Updated tests on batch of images
      
      * All functional transforms can work with (..., C, H, W) format
      
      * Added transforms tests on batch tensors
      
      * Added batch tests for five/ten crop
      - updated docs
      c4dcfb06
  19. 14 Sep, 2020 1 commit
  20. 03 Sep, 2020 1 commit
    • Dragos Cristian's avatar
      adjust_hue now supports inputs of type Tensor (#2566) · bb88c452
      Dragos Cristian authored
      
      
      * adjust_hue now supports inputs of type Tensor
      
      * Added comparison between original adjust_hue and its Tensor and torch.jit.script versions.
      
      * Added a few type checkings related to adjust_hue in functional_tensor.py in hopes to make F_t.adjust_hue scriptable...but to no avail.
      
      * Changed implementation of _rgb2hsv and removed useless type declaration according to PR's review.
      
      * Handled the range of hue_factor in the assertions and temporarily increased the assertLess bound to make sure that no other test fails.
      
      * Fixed some lint issues with CircleCI and added type hints in functional_pil.py as well.
      
      * Corrected type hint mistakes.
      
      * Followed PR review recommendations and added test for class interface with hue.
      
      * Refactored test_functional_tensor.py to match vfdev-5's d016cab branch by simple copy/paste and added the test_adjust_hue and ColorJitter class interface test in the same style (class interface test was removed in vfdev-5's branch for some reason).
      
      * Removed test_adjustments from test_transforms_tensor.py and moved the ColorJitter class interface test in test_transforms_tensor.py.
      
      * Added cuda test cases for test_adjustments and tried to fix conflict.
      
      * Updated tests
      - adjust hue
      - color jitter
      
      * Fixes incompatible devices
      
      * Increased tol for cuda tests
      
      * Fixes potential issue with inplace op
      - fixes irreproducible failing test on Travis CI
      
      * Reverted fmod -> %
      Co-authored-by: default avatarvfdev-5 <vfdev.5@gmail.com>
      bb88c452
  21. 02 Sep, 2020 1 commit
  22. 01 Sep, 2020 1 commit
    • vfdev's avatar
      Refactor adjust ops tests (#2595) · 5f616a2b
      vfdev authored
      * [WIP] Unify ops Grayscale and RandomGrayscale
      
      * Unified inputs for grayscale op and transforms
      - deprecated F.to_grayscale in favor of F.rgb_to_grayscale
      
      * Fixes bug with fp input
      
      * Rewritten adjust_* tests
      - split test_adjustments into 3 separate tests
      - unified testing approach with test_adjust_gamma
      
      * Added ColorJitter tests
      
      * Relaxed tolerance for functional adjust-* tests
      
      * Removed wrong merge and commented code
      5f616a2b
  23. 31 Aug, 2020 1 commit
  24. 28 Aug, 2020 1 commit
    • vfdev's avatar
      Unified inputs for grayscale ops and transforms (#2586) · 2eba1f04
      vfdev authored
      * [WIP] Unify ops Grayscale and RandomGrayscale
      
      * Unified inputs for grayscale op and transforms
      - deprecated F.to_grayscale in favor of F.rgb_to_grayscale
      
      * Fixes bug with fp input
      
      * [WIP] Updated code according to review
      
      * Removed unused import
      2eba1f04
  25. 26 Aug, 2020 1 commit
  26. 20 Aug, 2020 1 commit
  27. 11 Aug, 2020 1 commit
  28. 08 Aug, 2020 1 commit
  29. 07 Aug, 2020 1 commit
    • vfdev's avatar
      [BC-breaking] Unified input for F.perspective (#2558) · 8c7e7bb0
      vfdev authored
      * [WIP] Added unified input perspective transformation code
      
      * Unified input for F.perspective
      - added tests
      - updated docs
      
      * Added more random test configs
      
      * Fixed the code according to PR's review
      8c7e7bb0
  30. 06 Aug, 2020 1 commit
    • vfdev's avatar
      Fixes F.affine and F.rotate to support rectangular tensor images (#2553) · 025b71d8
      vfdev authored
      * Added code for F_t.rotate with test
      - updated F.affine tests
      
      * Rotate test tolerance to 2%
      
      * Fixes failing test
      
      * Optimized _expanded_affine_grid with a single matmul op
      
      * Recoded _compute_output_size
      
      * [WIP] recoded F_t.rotate internal methods
      
      * [WIP] Fixed F.affine to support rectangular images
      
      * Recoded _gen_affine_grid to optimized version ~ affine_grid
      - Fixes flake8
      
      * [WIP] Use _gen_affine_grid for affine and rotate
      
      * Fixed tests on square / rectangular images for affine and rotate ops
      
      * Removed redefinition of F.rotate
      - due to bad merge
      025b71d8
  31. 05 Aug, 2020 1 commit
    • vfdev's avatar
      Unified inputs for `F.rotate` (#2495) · 76662528
      vfdev authored
      * Added code for F_t.rotate with test
      - updated F.affine tests
      
      * Rotate test tolerance to 2%
      
      * Fixes failing test
      
      * Optimized _expanded_affine_grid with a single matmul op
      
      * Recoded _compute_output_size
      76662528
  32. 03 Aug, 2020 1 commit
  33. 17 Jul, 2020 1 commit
  34. 16 Jul, 2020 2 commits
    • Kushajveer Singh's avatar
      perform cyclic check for hue in test_rgb2hsv (#2477) · ab73b448
      Kushajveer Singh authored
      * perform cyclic check for hue in test_rgb2hsv
      
      Test fails for cases when hue=0 and hue=360. As hue is cyclic in nature, add cyclic logic for checking the max difference by taking the sin of the tensor and then comparing the max values.
      
      * address linter issues
      ab73b448
    • vfdev's avatar
      Unified input for F.affine (#2444) · 5f4b5794
      vfdev authored
      * [WIP] F.affine
      
      * [WIP] F.affine + tests
      
      * Unified input for F.affine
      
      * Removed commented code
      
      * Removed unused imports
      5f4b5794
  35. 10 Jul, 2020 1 commit
  36. 07 Jul, 2020 1 commit
    • vfdev's avatar
      Unified input for resized crop op (#2396) · 9b804659
      vfdev authored
      * [WIP] Unify random resized crop
      
      * Unify input for RandomResizedCrop
      
      * Fixed bugs and updated test
      
      * Added resized crop functional test
      - fixed bug with size convention
      
      * Fixed incoherent sampling
      
      * Fixed torch randint review remark
      9b804659