1. 04 Mar, 2021 1 commit
  2. 03 Mar, 2021 1 commit
  3. 09 Feb, 2021 1 commit
  4. 02 Feb, 2021 1 commit
  5. 28 Jan, 2021 1 commit
  6. 26 Jan, 2021 2 commits
  7. 07 Jan, 2021 1 commit
  8. 23 Dec, 2020 1 commit
    • Zhengyang Feng's avatar
      Transforms documentation clean-up (#3200) · 7b9d30eb
      Zhengyang Feng authored
      * Initial doc clean-up
      
      * Remove all private docs
      
      * Rename files
      
      * Highlight backend inconsistencies
      
      * Sequence and number
      
      * [Need checking] AutoAugment related doc change
      
      * Revert name changes
      7b9d30eb
  9. 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
  10. 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
  11. 27 Nov, 2020 2 commits
  12. 16 Nov, 2020 1 commit
  13. 22 Oct, 2020 1 commit
  14. 21 Oct, 2020 1 commit
  15. 16 Oct, 2020 1 commit
  16. 14 Oct, 2020 1 commit
  17. 07 Oct, 2020 3 commits
    • vfdev's avatar
      Added RandomApply as scriptable transform (#2769) · f1f6a972
      vfdev authored
      f1f6a972
    • vfdev's avatar
      Added tensor transforms jupyter notebook (#2730) · 6eff0a43
      vfdev authored
      * [WIP] Added scriptable transforms python example
      
      * Replaced script file with jupyter notebook
      
      * Updated readme
      
      * Updates according to review
      + updated docstrings
      
      * Updated notebook and docstring according to the review
      
      * torch script -> torchscript
      6eff0a43
    • 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
  18. 05 Oct, 2020 2 commits
    • vfdev's avatar
      Fixes #2738 (#2757) · 3d0c7794
      vfdev authored
      - Fixed incorrect docs layout and a warning
      3d0c7794
    • Brian Vaughan's avatar
      make convert_image_dtype scriptable (#2485) · c542137c
      Brian Vaughan authored
      
      
      * make convert_image_dtype scriptable
      
      * move convert dtype to functional_tensor since only works on tensors
      
      * retain availability of convert_image_dtype in functional.py
      
      * Update code and tests
      
      * Replaced int by torch.dtype
      
      * int -> torch.dtype and use F instead of F_t
      
      * Update functional_tensor.py
      Co-authored-by: default avatarvfdev-5 <vfdev.5@gmail.com>
      c542137c
  19. 30 Sep, 2020 1 commit
    • vfdev's avatar
      Fixes #2702 (#2721) · b618923c
      vfdev authored
      - Updated code and tests to support batch of tensors, e.g. input of shape (B, C, H, W).
      b618923c
  20. 23 Sep, 2020 1 commit
    • vfdev's avatar
      Normalize, LinearTransformation are scriptable (#2645) · 1b415254
      vfdev authored
      * [WIP] All transforms are now derived from torch.nn.Module
      - Compose, RandomApply, Normalize can be jit scripted
      
      * Fixed flake8
      
      * Updated code and docs
      - added getattr to Lambda and tests
      - updated code and docs of Compose
      - added failing test with append/extend on Composed.transforms
      
      * Fixed flake8
      
      * Updated code, tests and docs
      1b415254
  21. 22 Sep, 2020 1 commit
  22. 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
  23. 08 Aug, 2020 1 commit
  24. 07 Aug, 2020 1 commit
    • vfdev's avatar
      Unified inputs for `T.RandomRotation` (#2496) · 08af5cb5
      vfdev authored
      * Added code for F_t.rotate with test
      - updated F.affine tests
      
      * Rotate test tolerance to 2%
      
      * Fixes failing test
      
      * [WIP] RandomRotation
      
      * Unified RandomRotation with tests
      08af5cb5
  25. 03 Aug, 2020 1 commit
  26. 29 Jul, 2020 1 commit
  27. 08 Jul, 2020 1 commit
  28. 07 Jul, 2020 2 commits
  29. 06 Jul, 2020 1 commit
    • vfdev's avatar
      Unified input for resize op (#2394) · e212cc86
      vfdev authored
      * [WIP] F.resize with tensor
      
      * Adapted T.Resize and F.resize with a test
      
      * According to the review, fixed copy-pasted messages and unused imports
      e212cc86
  30. 03 Jul, 2020 1 commit
  31. 30 Jun, 2020 2 commits
    • vfdev's avatar
      Improved docs and tests for (#2371) · e50c2e36
      vfdev authored
      - RandomCrop: crop with padding using all commonly supported modes
      e50c2e36
    • vfdev's avatar
      Unified Tensor/PIL crop (#2342) · a99b6bd7
      vfdev authored
      * [WIP] Unified Tensor/PIL crop
      
      * Fixed misplaced type annotation
      
      * Fixed tests
      - crop with padding
      - other tests using mising private functions: _is_pil_image, _get_image_size
      
      * Unified CenterCrop and F.center_crop
      - sorted includes in transforms.py
      - used py3 annotations
      
      * Unified FiveCrop and F.five_crop
      
      * Improved tests and docs
      
      * Unified TenCrop and F.ten_crop
      
      * Removed useless typing in functional_pil
      
      * Updated code according to the review
      - removed useless torch.jit.export
      - added missing typing return type
      - fixed F.F_pil._is_pil_image -> F._is_pil_image
      
      * Removed useless torch.jit.export
      
      * Improved code according to the review
      a99b6bd7
  32. 26 Jun, 2020 1 commit
  33. 23 Jun, 2020 1 commit