- 09 Jun, 2021 1 commit
-
-
Anirudh authored
-
- 07 Jun, 2021 1 commit
-
-
Nicolas Hug authored
-
- 02 Jun, 2021 1 commit
-
-
Nicolas Hug authored
-
- 01 Jun, 2021 1 commit
-
-
Vasilis Vryniotis authored
-
- 21 May, 2021 1 commit
-
-
Nicolas Hug authored
Co-authored-by:Philip Meier <github.pmeier@posteo.de>
-
- 17 May, 2021 1 commit
-
-
Jaesun Park authored
* Make crop work the same for pil and tensor * Only call pad if needed in functional_tensor.crop * Fix top-left functional_tensor.crop * Update document for functional.crop * Add other test cases of functional.crop * Fix bug * Fixing formattter * Fix stylings Co-authored-by:Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
- 21 Apr, 2021 1 commit
-
-
Nicolas Hug authored
* fix test * more robust test * flake8 Co-authored-by:Francisco Massa <fvsmassa@gmail.com>
-
- 30 Mar, 2021 1 commit
-
-
Vasilis Vryniotis authored
-
- 04 Mar, 2021 1 commit
-
-
Nicolas Hug authored
* WIP, still needs tests and docs * tests * flake8 * Docs + fixed some tests * proper error messages
-
- 23 Feb, 2021 1 commit
-
-
Francisco Massa authored
Summary: Pull Request resolved: https://github.com/pytorch/vision/pull/3422 In CUDA-10.1 or below it is a no-op, but few of the tests will start to fail if update to 10.2 or newer, for example: ``` torchvision/transforms/transforms.py", line 1043, in forward transformed_tensor = torch.mm(flat_tensor, self.transformation_matrix) RuntimeError: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#cublasApi_reproducibility ``` Reviewed By: meyering Differential Revision: D26563045 fbshipit-source-id: 65e5fabc8cdb471a72f931df55389ed7c0063e54 Co-authored-by:
Nikita Shulga <nshulga@fb.com>
-
- 04 Jan, 2021 1 commit
-
-
Vasilis Vryniotis authored
* Speedup test_ucf101 (#2623 * Speedup Cmake builds (#3186) * Speedup test_autoaugment (#3190) * Speedup DeformConvTester (#3191) * Speedup InceptionV3 and GoogleNet on Windows (#3196)
-
- 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>
-
- 08 Dec, 2020 1 commit
-
-
Vasilis Vryniotis authored
-
- 03 Dec, 2020 1 commit
-
-
Ashish Farmer authored
-
- 02 Dec, 2020 1 commit
-
-
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:vfdev <vfdev.5@gmail.com>
-
- 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
-
- 06 Nov, 2020 1 commit
-
-
vfdev authored
- fixed problem with error computation between results - refactored tensor cast for resize - fixed round usage
-
- 22 Oct, 2020 1 commit
-
-
vfdev authored
-
- 07 Oct, 2020 3 commits
-
-
vfdev authored
-
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:vfdev-5 <vfdev.5@gmail.com>
-
vfdev authored
-
- 05 Oct, 2020 2 commits
-
-
James Thewlis authored
* Negative padding for functional_tensor symmetric Along with #2744 this will make negative padding uniform between PIL and Tensor #2381 * Enable tests for negative symmetric pad with tensor Co-authored-by:vfdev <vfdev.5@gmail.com>
-
vfdev 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 * Added CPU/CUDA+batch tests * Fixed tests according to review Co-authored-by:Brian <nairbv@yahoo.com>
-
- 03 Oct, 2020 1 commit
-
-
James Thewlis authored
* Negative padding for functional_pil #2381 * Tests for PIL negative padding #2381 * Move PIL vs tensor test inside test_pad * Adapt test_pad from test_transforms_tensor.py Co-authored-by:vfdev <vfdev.5@gmail.com>
-
- 30 Sep, 2020 1 commit
-
-
vfdev authored
- Updated code and tests to support batch of tensors, e.g. input of shape (B, C, H, W).
-
- 29 Sep, 2020 1 commit
-
-
vfdev authored
Otherwise, torch jit scripted function raises exception on save
-
- 23 Sep, 2020 1 commit
-
-
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
-
- 18 Sep, 2020 1 commit
-
-
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
-
- 03 Sep, 2020 1 commit
-
-
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:vfdev-5 <vfdev.5@gmail.com>
-
- 01 Sep, 2020 1 commit
-
-
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
-
- 31 Aug, 2020 1 commit
-
-
vfdev authored
-
- 28 Aug, 2020 1 commit
-
-
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
-
- 26 Aug, 2020 1 commit
-
-
vfdev authored
* Improve transforms test codebase - refactored compareTensorToPIL, _create_data, approxEqualTensorToPIL methods * Fixed flake8
-
- 08 Aug, 2020 1 commit
-
-
vfdev authored
* Unified input for RandomPerspective * Updated docs * Fixed failing test and bug with torch.randint * Update test_functional_tensor.py
-
- 07 Aug, 2020 1 commit
-
-
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
-
- 03 Aug, 2020 1 commit
-
-
Andreas Georgiou authored
* Fixed resize to only match the smaller edge when an int is given instead of always * Added test cases for resize()
-
- 29 Jul, 2020 1 commit
-
-
vfdev authored
* [WIP] Unified input for T.RandomAffine * Unified inputs for T.RandomAffine transformation * Update transforms.py * Updated docs of F.affine fillcolor * Update transforms.py
-
- 07 Jul, 2020 1 commit
-
-
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
-
- 06 Jul, 2020 1 commit
-
-
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
-