- 13 Dec, 2022 1 commit
-
-
Sergii Dymchenko authored
-
- 13 Oct, 2022 2 commits
-
-
Philip Meier authored
* introduce nearest-exact interpolation * update prototype tests * update stable tests
-
vfdev authored
Co-authored-by:Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
- 28 Sep, 2022 1 commit
-
-
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:
YosuaMichael <yosuamichaelm@gmail.com> Co-authored-by:
Yosua Michael Maranatha <yosuamichael@fb.com>
-
- 14 Sep, 2022 1 commit
-
-
Vasilis Vryniotis authored
* Fix bug on `get_image_size()` and move it to deprecated. Introduce generic named spatial/channel equivalents. * Update tests and fix mypy issues. * Remove the use of get_image_size from ElasticTransform. * Fix linter * Apply suggestions from code review. * Update torchvision/prototype/transforms/functional/_deprecated.py Co-authored-by:
Philip Meier <github.pmeier@posteo.de> * Further changes from code review. * Fix linter Co-authored-by:
Philip Meier <github.pmeier@posteo.de>
-
- 08 Sep, 2022 1 commit
-
-
vfdev authored
-
- 28 Jul, 2022 1 commit
-
-
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:
Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
- 22 Jul, 2022 1 commit
-
-
Philip Meier authored
* upgrade usort to * Also update black * Actually use 1.0.2 * Apply pre-commit Co-authored-by:Nicolas Hug <contact@nicolas-hug.com>
-
- 21 Jul, 2022 1 commit
-
-
Zachariah Carmichael authored
-
- 23 Jun, 2022 1 commit
-
-
vfdev authored
-
- 13 Jun, 2022 1 commit
-
-
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:
vfdev <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:
vfdev <vfdev.5@gmail.com>
-
- 16 May, 2022 1 commit
-
-
kylematoba authored
* Requested here https://github.com/pytorch/vision/pull/5898#discussion_r864765799 . * Fix tests * ufmt, not black Co-authored-by:
Philip Meier <github.pmeier@posteo.de> Co-authored-by:
Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
- 09 May, 2022 1 commit
-
-
kylematoba authored
* Update transforms for PIL deprecation * Changes agreed at pytorch/vision#5898 * black, sort constants, version check * Format tests * Square brackets * Update torchvision/transforms/_pil_constants.py Co-authored-by:
Nicolas Hug <contact@nicolas-hug.com> Co-authored-by:
Philip Meier <github.pmeier@posteo.de> Co-authored-by:
Nicolas Hug <contact@nicolas-hug.com> Co-authored-by:
Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
- 29 Mar, 2022 1 commit
-
-
Behrooz authored
* Update docstring of adjust_hue Signed-off-by:
Behrooz <3968947+drbeh@users.noreply.github.com> * Update docstring of ColorJitter Signed-off-by:
Behrooz <3968947+drbeh@users.noreply.github.com> * Minor corrections Signed-off-by:
Behrooz <3968947+drbeh@users.noreply.github.com>
-
- 17 Mar, 2022 1 commit
-
-
Philip Meier authored
Co-authored-by:Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
- 14 Mar, 2022 1 commit
-
-
Georg Grab authored
Co-authored-by:Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
- 11 Mar, 2022 1 commit
-
-
Vasilis Vryniotis authored
-
- 04 Mar, 2022 1 commit
-
-
Vasilis Vryniotis authored
* Remove from models and references. * Adding most tests and docs. * Adding transforms tests. * Remove unnecesary ipython notebook. * Simplify tests. * Addressing comments.
-
- 28 Feb, 2022 1 commit
-
-
Vasilis Vryniotis authored
* Replace get_image_size/num_channels with get_image_dims * Reduce verbosity * Fix JIT-scriptability * Refactoring * More refactoring * Replace all _FP/_FT direct calls. * Remove usages of get_image_size and get_image_num_channels from code-base. * Fix JIT issues * Adding missing assertion.
-
- 09 Feb, 2022 1 commit
-
-
Joao Gomes authored
* Consolidating __repr__ strings Co-authored-by:Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
- 08 Feb, 2022 2 commits
-
-
Philip Meier authored
* properly deprecate legacy implementation * cleanup * use warning over deprecation directive * remove patch version * fix link in Kinetics docstring * Some more * fix affine functional tests Co-authored-by:Nicolas Hug <nicolashug@fb.com>
-
Nicolas Hug authored
* Remove APIs that were deprecated before 0.8 * More stuff * Some more * oops
-
- 24 Jan, 2022 1 commit
-
-
vfdev authored
* Added center option to F.affine and RandomAffine ops * Updates according to the review
-
- 21 Dec, 2021 1 commit
-
-
Kai Zhang authored
* add api usage log to functional transforms * add log to transforms * fix for scriptablity * skip Compose for scriptability * follow the new policy * torchscriptbility * adopt new API * make Compose scriptable * move from __call__ to __init__
-
- 28 Oct, 2021 1 commit
-
-
Jirka Borovec authored
Co-authored-by:Nicolas Hug <nicolashug@fb.com>
-
- 27 Oct, 2021 1 commit
-
-
Nicolas Hug authored
* Change test_random_apply * Change test_random_choice * Change test_randomness * took care of RandomVert/HorizFlip * take care of RandomGrayScale * minor cleanup * avoid 0 degree rotation just in case
-
- 08 Oct, 2021 1 commit
-
-
Joao Gomes authored
* mExplicitly copying array in pil_to_tensor * Update torchvision/transforms/functional.py Co-authored-by:
Nicolas Hug <contact@nicolas-hug.com> * Adding comments regarding implicit array deep copy in PILToTensor transform * Update torchvision/transforms/transforms.py Co-authored-by:
Nicolas Hug <contact@nicolas-hug.com> Co-authored-by:
Nicolas Hug <contact@nicolas-hug.com> Co-authored-by:
Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
- 04 Oct, 2021 1 commit
-
-
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:Nicolas Hug <nicolashug@fb.com>
-
- 28 Sep, 2021 1 commit
-
-
Prabhat Roy authored
-
- 27 Sep, 2021 1 commit
-
-
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
-
- 15 Sep, 2021 1 commit
-
-
Vasilis Vryniotis authored
* Add RandomMixupCutmix. * Add test with real data. * Use dataloader and collate in the test. * Making RandomMixupCutmix JIT scriptable. * Move out label_smoothing and try roll instead of flip * Adding mixup/cutmix in references script. * Handle one-hot encoded target in accuracy. * Add support of devices on tests. * Separate Mixup from Cutmix. * Add check for floats. * Adding device on expect value. * Remove hardcoded weights. * One-hot only when necessary. * Fix linter. * Moving mixup and cutmix to references. * Final code clean up.
-
- 05 Sep, 2021 1 commit
-
-
Kai Zhang authored
-
- 26 Aug, 2021 1 commit
-
-
Vasilis Vryniotis authored
-
- 30 Jun, 2021 1 commit
-
-
Nicolas Hug authored
-
- 11 May, 2021 1 commit
-
-
Vasilis Vryniotis authored
* Fix inconsistent version pinning across yaml files. * Pin pillow to >=5.3.0 * Pin pillow>=5.3.0 everywhere
-
- 10 May, 2021 1 commit
-
-
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
-
- 21 Apr, 2021 1 commit
-
-
Zhengyang Feng authored
-
- 20 Apr, 2021 1 commit
-
-
Nicolas Hug authored
-
- 12 Apr, 2021 1 commit
-
-
Lewis Patten authored
-
- 08 Apr, 2021 1 commit
-
-
Nicolas Hug authored
* Fixed return docstrings * Added some refs and corrected some parts * more refs, and a note about dtypes Co-authored-by:Francisco Massa <fvsmassa@gmail.com>
-