- 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>
-
- 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.
-
- 06 Sep, 2021 1 commit
-
-
SamuelGabriel authored
* Initial Proposal * Tensor Save Test + Test Name Fix * Formatting + removing unused argument * fix old argument * fix isnan check error + indexing error with jit * Fix Flake8 error. * Fix MyPy error. * Fix Flake8 error. * Fix PyTorch JIT error in UnitTests due to type annotation. * Fixing tests. * Removing type ignore. * Adding support of ta_wide in references. * Move methods in classes. * Moving new classes to the bottom. * Specialize to TA to TAwide * Add missing type * Fixing lint * Fix doc * Fix search space of TrivialAugment. Co-authored-by:
Vasilis Vryniotis <datumbox@users.noreply.github.com> Co-authored-by:
Vasilis Vryniotis <vvryniotis@fb.com>
-
- 02 Sep, 2021 1 commit
-
-
Vasilis Vryniotis authored
* Adding randaugment implementation * Refactoring. * Adding num_magnitude_bins. * Adding FIXME.
-
- 06 Aug, 2021 1 commit
-
-
Vincent Moens authored
Co-authored-by:Vincent Moens <vmoens@fb.com>
-
- 14 Jul, 2021 1 commit
-
-
Philip Meier authored
Co-authored-by:Nicolas Hug <nicolashug@fb.com>
-
- 15 Jun, 2021 1 commit
-
-
Anirudh authored
-
- 09 Jun, 2021 1 commit
-
-
Rajat Jaiswal authored
-
- 08 Jun, 2021 3 commits
-
-
S Harish authored
-
Ishan Kumar authored
-
Anirudh authored
-
- 05 Jun, 2021 5 commits
-
-
Zhiqiang Wang authored
-
Anirudh authored
-
Vivek Kumar authored
-
DevPranjal authored
-
Anirudh authored
-
- 04 Jun, 2021 3 commits
-
-
Vivek Kumar authored
-
Ishan Kumar authored
-
Sahil Goyal authored
-
- 03 Jun, 2021 3 commits
-
-
Shrill Shrestha authored
-
Drishti Bhasin authored
-
Saswat Das authored
-
- 01 Jun, 2021 1 commit
-
-
Vasilis Vryniotis authored
-
- 26 May, 2021 1 commit
-
-
Vasilis Vryniotis authored
-
- 24 May, 2021 1 commit
-
-
Nicolas Hug authored
Co-authored-by:Philip Meier <github.pmeier@posteo.de>
-
- 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
-
- 04 Mar, 2021 1 commit
-
-
Nicolas Hug authored
* WIP, still needs tests and docs * tests * flake8 * Docs + fixed some tests * proper error messages
-
- 03 Mar, 2021 1 commit
-
-
KAI ZHAO authored
-
- 15 Feb, 2021 1 commit
-
-
vfdev authored
Fixes #3393
-
- 12 Feb, 2021 1 commit
-
-
Vasilis Vryniotis authored
* Fix test flakiness caused by rounding. * Update test/test_transforms.py * Styles Co-authored-by:Nicolas Hug <contact@nicolas-hug.com>
-
- 10 Feb, 2021 1 commit
-
-
Vasilis Vryniotis authored
-
- 09 Feb, 2021 1 commit
-
-
clint (woonhyuk baek) authored
* aspect ratio must be a sampling from log scale. reference from: https://github.com/pytorch/vision/blob/8317295c1d272e0ba7b2ce31e3fd2c048235fc73/torchvision/transforms/transforms.py#L833-L836 * add random erasing unittest code * Increased threshold for difference in sampling rate * move outside of the loop * log_ratio move outside of the loop. RandomResizedCrop also Co-authored-by:
Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
- 02 Feb, 2021 1 commit
-
-
Saurabh Khanduja authored
* Renamed original method to test center crop * Added test method, docs and added padding when imgsize < cropsize. * BugFix - keep odd_crop_size odd * Do not crop when image size after padding matches crop size; updated test. Co-authored-by:Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
- 28 Jan, 2021 1 commit
-
-
Anthony Kantsemal authored
* initial fix * fill=0 * docstrings * fill type check * fill type check * set None to zero * unit tests * set instead of NotImplemented * fix W293 Co-authored-by:
vfdev <vfdev.5@gmail.com> Co-authored-by:
Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
- 14 Dec, 2020 1 commit
-
-
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:
vfdev <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:
Francisco 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:
vfdev <vfdev.5@gmail.com> Co-authored-by:
Francisco Massa <fvsmassa@gmail.com>
-
- 03 Dec, 2020 1 commit
-
-
Francisco Massa authored
It's not used currently and can lead to exceptions such as runtime error: 5.7896e+76 is outside the range of representable values of type 'float'
-
- 27 Nov, 2020 2 commits
-
-
Vasilis Vryniotis authored
-
vfdev authored
[BC-breaking] Introduced InterpolationModes and deprecated arguments: resample and fillcolor (#2952) * Deprecated arguments: resample and fillcolor Replaced by interpolation and fill * Updates according to the review * Added tests to check warnings and asserted BC * [WIP] Interpolation modes * Added InterpolationModes enum * Added supported for int values for interpolation for BC * Removed useless test code * Fix flake8
-
- 20 Nov, 2020 1 commit
-
-
Alexey Demyanchuk authored
* Add explicit check for number of channels Example why you need to check it: `M = torch.randint(low=0, high=2, size=(6, 64, 64), dtype = torch.float)` When you put this input through to_pil_image without mode argument, it converts to uint8 here: ``` if pic.is_floating_point() and mode != 'F': pic = pic.mul(255).byte() ``` and change the mode to RGB here: ``` if mode is None and npimg.dtype == np.uint8: mode = 'RGB' ``` Image.fromarray doesn't raise if provided with mode RGB and just cut number of channels from what you have to 3 * Check number of channels before processing * Add test for invalid number of channels * Add explicit check for number of channels Example why you need to check it: `M = torch.randint(low=0, high=2, size=(6, 64, 64), dtype = torch.float)` When you put this input through to_pil_image without mode argument, it converts to uint8 here: ``` if pic.is_floating_point() and mode != 'F': pic = pic.mul(255).byte() ``` and change the mode to RGB here: ``` if mode is None and npimg.dtype == np.uint8: mode = 'RGB' ``` Image.fromarray doesn't raise if provided with mode RGB and just cut number of channels from what you have to 3 * Check number of channels before processing * Add test for invalid number of channels * Put check after channel dim unsqueeze * Add test if error message is matching * Delete redundant code * Bug fix in checking for bad types Co-authored-by:Demyanchuk <demyanca@mh-hannover.local> Co-authored-by:
vfdev <vfdev.5@gmail.com>
-