1. 11 Jan, 2023 1 commit
  2. 21 Dec, 2022 1 commit
  3. 13 Dec, 2022 1 commit
  4. 15 Nov, 2022 1 commit
  5. 10 Nov, 2022 1 commit
  6. 03 Nov, 2022 1 commit
    • Philip Meier's avatar
      Fix hardcoded 255 (#6830) · cb4413a3
      Philip Meier authored
      * fix prototype kernels
      
      * fix stable kernels
      
      * fix tests
      
      * make test more robust
      
      * improve invert for signed integers
      
      * improve invert
      
      * fix posterize
      
      * Revert "assume that integer images are [0, 255] in equalize (#6859)"
      
      This reverts commit 436ff9a5
      
      .
      
      * fix solarize in AA
      
      * fix resize
      
      * Revert "fix resize"
      
      This reverts commit 5f33f4aa73e098237650b794157ec9335d964152.
      
      * add comment to float max value
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      cb4413a3
  7. 21 Oct, 2022 1 commit
    • vfdev's avatar
      [proto] Speed up adjust color ops (#6784) · 9f024a6e
      vfdev authored
      * WIP
      
      * _blend optim v1
      
      * _blend and color ops optims: v2
      
      * updated a/r tol and configs to make tests pass
      
      * Loose a/r tolerance in AA tests
      
      * Use custom rgb_to_grayscale
      
      * Renamed img -> image
      
      * nit code update
      
      * PR review
      
      * adjust_contrast convert to float32 earlier
      
      * Revert "adjust_contrast convert to float32 earlier"
      
      This reverts commit a82cf8c739d02acd9868ebee4b8b99d101c3e45e.
      9f024a6e
  8. 14 Oct, 2022 1 commit
  9. 13 Oct, 2022 2 commits
  10. 06 Oct, 2022 1 commit
    • Philip Meier's avatar
      Reduce sample inputs for prototype transform kernels (#6714) · 026991b1
      Philip Meier authored
      * pad_image_tensor
      
      * pad_mask and pad_bounding_box
      
      * resize_{image_tensor, mask, bounding_box}
      
      * center_crop_{image_tensor, mask}
      
      * {five, ten}_crop_image_tensor
      
      * crop_{image_tensor, mask}
      
      * convert_color_space_image_tensor
      
      * affine_{image_tensor, mask, bounding_box}
      
      * rotate_{image_tensor, mask}
      
      * gaussian_blur_image_tensor
      
      * cleanup
      026991b1
  11. 30 Sep, 2022 1 commit
  12. 29 Sep, 2022 1 commit
  13. 28 Sep, 2022 1 commit
    • Nicolas Hug's avatar
      Remove deprecated APIs for 0.14 (#6258) · 7b8a6db7
      Nicolas Hug authored
      
      
      * Remove Kinetics400 class
      
      * Remove '2007-test' in VOC
      
      * Remove some MobileNet layer classes
      
      * Remove torchvision/models/segmentation/segmentation.py
      
      * Remove some MultiScaleRoIAlign methods
      
      * Remove torchvision/transforms/_functional_video.py
      
      * Remove torchvision/transforms/_transforms_video.py
      
      * Remove resample parameter in transforms
      
      * Remove 'range' parameter
      
      * Remove 'fill_value' parameter in transforms
      
      * Revert to original warning for C++ models - looks like we should still keep them around?
      
      * pre-commit
      
      * Fix docs
      
      * Remove test/test_transforms_video.py
      
      * Some fixes
      
      * Remove more tests
      
      * Revert changes to C++ models
      
      * Add back _transforms_video and change warning message
      
      * Change back the warning message, and will change the warning message on separate PR
      Co-authored-by: default avatarYosuaMichael <yosuamichaelm@gmail.com>
      Co-authored-by: default avatarYosua Michael Maranatha <yosuamichael@fb.com>
      7b8a6db7
  14. 21 Sep, 2022 1 commit
  15. 19 Sep, 2022 2 commits
  16. 16 Sep, 2022 1 commit
  17. 14 Sep, 2022 1 commit
  18. 08 Sep, 2022 1 commit
  19. 31 Aug, 2022 2 commits
  20. 24 Aug, 2022 1 commit
    • Philip Meier's avatar
      allow grayscale tensor images in `rgb_to_grayscale` (#6474) · 9559188c
      Philip Meier authored
      * add deprecated color conversion functionals
      
      * allow grayscale tensor inputs in rgb_to_grayscale
      
      * add cloning to tensor no-op
      
      * improve todo comment
      
      * [skip ci]
      
      * use legacy kernels
      
      use legacy kernels
      
      * fix import
      
      * remove duplicate code
      
      * remove duplicate check
      9559188c
  21. 19 Aug, 2022 1 commit
  22. 10 Aug, 2022 1 commit
  23. 28 Jul, 2022 2 commits
    • vfdev's avatar
      Renamed num_bands into num_channels (#6328) · 51f27d76
      vfdev authored
      51f27d76
    • vfdev's avatar
      [proto] Ported all transforms to the new API (#6305) · 77c8c91c
      vfdev authored
      * [proto] Added few transforms tests, part 1 (#6262)
      
      * Added supported/unsupported data checks in the tests for cutmix/mixup
      
      * Added RandomRotation, RandomAffine transforms tests
      
      * Added tests for RandomZoomOut, Pad
      
      * Update test_prototype_transforms.py
      
      * Added RandomCrop transform and tests (#6271)
      
      * [proto] Added GaussianBlur transform and tests (#6273)
      
      * Added GaussianBlur transform and tests
      
      * Fixing code format
      
      * Copied correctness test
      
      * [proto] Added random color transforms and tests (#6275)
      
      * Added random color transforms and tests
      
      * Disable smoke test for RandomSolarize, RandomAdjustSharpness
      
      * Added RandomPerspective and tests (#6284)
      
      - replaced real image creation by mocks for other tests
      
      * Added more functional tests (#6285)
      
      * [proto] Added elastic transform and tests (#6295)
      
      * WIP [proto] Added functional elastic transform with tests
      
      * Added more functional tests
      
      * WIP on elastic op
      
      * Added elastic transform and tests
      
      * Added tests
      
      * Added tests for ElasticTransform
      
      * Try to format code as in https://github.com/pytorch/vision/pull/5106
      
      
      
      * Fixed bug in affine get_params test
      
      * Implemented RandomErase on PIL input as fallback to tensors (#6309)
      
      Added tests
      
      * Added image_size computation for BoundingBox.rotate if expand (#6319)
      
      * Added image_size computation for BoundingBox.rotate if expand
      
      * Added tests
      
      * Added erase_image_pil and eager/jit erase_image_tensor test (#6320)
      
      * Updates according to the review
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      77c8c91c
  24. 22 Jul, 2022 1 commit
  25. 21 Jul, 2022 1 commit
  26. 11 Jul, 2022 1 commit
    • vfdev's avatar
      [proto] Added some transformations and fixed type hints (#6245) · 9effc4cd
      vfdev authored
      * Another attempt to add transforms
      
      * Fixed padding type hint
      
      * Fixed fill arg for pad and rotate, affine
      
      * code formatting and type hints for affine transformation
      
      * Fixed flake8
      
      * Updated tests to save and load transforms
      
      * Fixed code formatting issue
      
      * Fixed jit loading issue
      
      * Restored fill default value to None
      Updated code according to the review
      
      * Added tests for rotation, affine and zoom transforms
      
      * Put back commented code
      
      * Random erase bypass boxes and masks
      Go back with if-return/elif-return/else-return
      
      * Fixed acceptable and non-acceptable types for Cutmix/Mixup
      
      * Updated conditions for _BaseMixupCutmix
      9effc4cd
  27. 06 Jul, 2022 1 commit
    • vfdev's avatar
      [proto] Added mid-level ops and feature-based ops (#6219) · bd19fb8e
      vfdev authored
      * Added mid-level ops and feature-based ops
      
      * Fixing deadlock in dataloader with circular imports
      
      * Added non-scalar fill support workaround for pad
      
      * Removed comments
      
      * int/float support for fill in pad op
      
      * Updated type hints and removed bypass option from mid-level methods
      
      * Minor nit fixes
      bd19fb8e
  28. 01 Jul, 2022 1 commit
  29. 27 Jun, 2022 1 commit
  30. 23 Jun, 2022 2 commits
  31. 13 Jun, 2022 1 commit
    • Lenz's avatar
      Added elastic transform in torchvision.transforms (#4938) · 9430be76
      Lenz authored
      
      
      * Added elastic augment
      
      * ufmt formatting
      
      * updated comments
      
      * fixed circular dependency issue and bare except error
      
      * Fixed three type checking errors in functional_tensor.py
      
      * ufmt formatted
      
      * changed elastic_deformation to a more common implementation
      
      Implementation uses alpha and sigma to control strength and smoothness of the displacement vectors in elastic_deformation instead of control_point_spacings and sigma.
      
      * ufmt formatting
      
      * Some performance updates
      
      Put random offset vectors to device before gaussian_blur is applied speeds it up 3-fold.
      
      * fixed type error
      
      * fixed again a type error
      
      * Update torchvision/transforms/functional_tensor.py
      Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
      
      * Added some requested changes
      
      - pil image support similar to GaussianBlur
      - changed interpolation arg to InterpolationMode
      - added a wrapper in torchvision.transforms.functional.py that gets called by the class in transforms.py
      -renamed it to ElasticTransform
      - handled sigma = 0 case
      
      * added img docstring
      
      * added some tests
      
      * Updated tests and the code
      
      * Added the requested changes to the arguments of F.elastic_transform
      
      Added random_state and displacement as arguments to F.elastic_transform
      
      * fixed the type error
      
      * Fixed tests and docs
      
      * implemented requested changes
      
      Changes:
      1) alpha AND sigma OR displacement must be given as arguments to transforms.functional_tensor.elastic_transform instead of alpha AND sigma AND displacement
      2) displacements are accepted in transforms.functional.elastic_transform as np.array and torch.Tensor instead of only accepting torch.Tensor
      
      * ufmt formatting
      
      * trochscript error resolved
      
      replaced torch.from_numpy() to torch.Tensor() to make it compatible to torchscript
      
      * revert to torch.from_numpy()
      
      * updated argument checks and errors
      
      - In F.elastic_transform added check to see if both user inputs img and displacement are either of type PIL Image and ndarray or both of type tensor.
      - In F_t.elastic_transform added check if alpha and sigma are None if displacement is given or vice versa.
      
      * fixed seed error
      
      changed torch.seed to torch.manual_seed in F_t.elastic_transform
      
      * Reverted displacement type and other cosmetics
      
      * Other minor improvements
      
      * changed gaussian_blur filter size
      
      changed gaussian_blur filter size
      from
      4 * int(sigma) + 1
      to
      int(8 * sigma + 1)
      to make it consistent with ernestums implementation
      
      * resolved merge error
      
      * Revert "resolved merge error"
      
      This reverts commit 6a4a4e74ff4d078e2c2753d359185f9a81c415d0.
      
      * resolve merge error
      
      * ufmt formatted
      
      * ufmt formated once again..
      
      * fixed unsupported operand error
      
      * Update API and removed random_state from functional part
      
      * Added default values
      
      * Added ElasticTransform to gallery and updated the docstring
      
      * Updated gallery and added _log_api_usage_once
      BTW, matplotlib.pylab is deprecated
      
      * Updated gallery transforms code
      
      * Updates according to review
      Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
      9430be76
  32. 11 Jun, 2022 1 commit
  33. 23 May, 2022 1 commit
  34. 16 May, 2022 2 commits