- 05 Oct, 2020 1 commit
-
-
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:vfdev-5 <vfdev.5@gmail.com>
-
- 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
-
- 14 Sep, 2020 1 commit
-
-
vfdev authored
* Improved functional tensor geom transforms to work on floatX dtype - Fixes #2600 - added tests - refactored test_affine * Removed float16/cpu case
-
- 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>
-
- 02 Sep, 2020 1 commit
-
-
vfdev authored
* Added cuda torch.jit tests for rgb-hsv tensor conversion ops * Reverted deleted test
-
- 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
-
- 20 Aug, 2020 1 commit
-
-
vfdev authored
* Adapted almost all functional tensor tests on CPU/CUDA - fixed bug with transforms using generated grid - remains *_crop, blocked by #2568 - TODO: test_adjustments * Apply suggestions from code review Co-authored-by:
Francisco Massa <fvsmassa@gmail.com> * Fixed issues according to review * Split tests into two: cpu and cuda * Updated test_adjustments to run on CPU and CUDA Co-authored-by:
Francisco Massa <fvsmassa@gmail.com>
-
- 11 Aug, 2020 1 commit
-
-
vfdev authored
- Updated docs - Put warning in the code - Updated tests
-
- 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
* [WIP] Added unified input perspective transformation code * Unified input for F.perspective - added tests - updated docs * Added more random test configs * Fixed the code according to PR's review
-
- 06 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 * Optimized _expanded_affine_grid with a single matmul op * Recoded _compute_output_size * [WIP] recoded F_t.rotate internal methods * [WIP] Fixed F.affine to support rectangular images * Recoded _gen_affine_grid to optimized version ~ affine_grid - Fixes flake8 * [WIP] Use _gen_affine_grid for affine and rotate * Fixed tests on square / rectangular images for affine and rotate ops * Removed redefinition of F.rotate - due to bad merge
-
- 05 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 * Optimized _expanded_affine_grid with a single matmul op * Recoded _compute_output_size
-
- 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()
-
- 17 Jul, 2020 1 commit
-
-
Brian Vaughan authored
* add torchscriptable adjust_gamma transform https://github.com/pytorch/vision/issues/1375 * changes based on code-review * Apply suggested change to add type hint Required by mypy, even thought technically incorrect due to possible Image parameter. torchscript doesn't support a union based type hint. Co-authored-by:
vfdev <vfdev.5@gmail.com> Co-authored-by:
vfdev <vfdev.5@gmail.com>
-
- 16 Jul, 2020 2 commits
-
-
Kushajveer Singh authored
* perform cyclic check for hue in test_rgb2hsv Test fails for cases when hue=0 and hue=360. As hue is cyclic in nature, add cyclic logic for checking the max difference by taking the sin of the tensor and then comparing the max values. * address linter issues
-
vfdev authored
* [WIP] F.affine * [WIP] F.affine + tests * Unified input for F.affine * Removed commented code * Removed unused imports
-
- 10 Jul, 2020 1 commit
-
-
Brian Vaughan authored
-
- 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
-
- 02 Jul, 2020 1 commit
-
-
vfdev authored
* [WIP] Added symmetric padding mode * Added check and raise error if padding is negative for symmetric padding mode * Added test check for raising error if negative pad
-
- 30 Jun, 2020 1 commit
-
-
vfdev authored
* [WIP] functional_tensor supports more padding modes * [WIP] Support all padding modes * Removed wip symmetric mode * Improvements according to the review
-
- 26 Jun, 2020 1 commit
-
-
vfdev authored
* [WIP] Add Tensor implementation for pad * Unified Pad and F.pad opertion for PIL and Tensor inputs * Added another test and improved docstring * Updates according to the review * Cosmetics and replaced f-string by "".format * Updated docstring - added compatibility support for padding as [value, ] for functional_pil.pad Co-authored-by:Francisco Massa <fvsmassa@gmail.com>
-
- 11 Jun, 2020 1 commit
-
-
vikramtankasali authored
* Adjust hue * Adjust hue acceps torch.tensor uint8 Co-authored-by:Vikram Mukunda Rao Tankasali <vikramtankasali@devvm765.lla0.facebook.com>
-
- 10 Jun, 2020 1 commit
-
-
Clement Joudet authored
* feat: torchscriptable adjusments * fix: tensor output type * feat: ColorJitter torchscriptable * fix: too many blank lines * fix: documentation spacing and torchscript annotation * refactor: list type for _check_input * refactor: reverting to original syntax Co-authored-by:clement.joudet <clement.joudet@inventia.life>
-
- 31 Mar, 2020 1 commit
-
-
Philip Meier authored
* remove sys.version_info == 2 * remove sys.version_info < 3 * remove from __future__ imports
-
- 19 Dec, 2019 1 commit
-
-
Surgan Jandial authored
* scriptability checks * tests upds * linter upds * linter upds * upds * tuple list changes * linter updates
-
- 12 Dec, 2019 1 commit
-
-
Surgan Jandial authored
* out_place checks * lint ups
-
- 04 Dec, 2019 1 commit
-
-
Ankit Jha authored
* add scriptable transform: center_crop * add test: center_crop * add scriptable transform: five_crop * add scriptable transform: five_crop * add scriptable transform: fix minor issues
-
- 05 Nov, 2019 1 commit
-
-
Ankit Jha authored
* Add Scriptable Transform: Grayscale * add scriptable transforms: rgb_to_grayscale * add scriptable transform: rgb_to_grayscale * add scriptable transform: rgb_to_grayscale * add scriptable transform: rgb_to_grayscale * update code: rgb_to_grayscale * add test: rgb_to_grayscale * update parameters: rgb_to_grayscale * add scriptable transform: rgb_to_grayscale * update rgb_to_grayscale * update rgb_to_grayscale
-
- 26 Oct, 2019 1 commit
-
-
pedrofreire authored
* Add adjustment operations for RGB Tensor Images. Right now, we have operations on PIL images, but we want to have a version of the opeartions that act directly on Tensor images. Here, we add such operations for adjust_brightness, adjust_contrast and adjust_saturation. In PIL, those functions are implemented by generating an degenerate image from the first, and then interpolating them together. - https://github.com/python-pillow/Pillow/blob/master/src/PIL/ImageEnhance.py - https://github.com/python-pillow/Pillow/blob/master/src/libImaging/Blend.c A few caveats: * Since PIL operates on uint8, and the tensor operations might be on float, we can get slightly different values because of int truncation. * We assume here the images are RGB; in particular, to handle an alpha channel, we need to check whether it is present, in which case we copy it to the final image. * Keep dtype and use broadcast in adjust operations - We make our operations have input.dtype == output.dtype, at the cost of adding a few type checks and branches. - By using Tensor broadcast, we can simplify the calls to _blend. * Use is_floating_point to check dtype. * Remove unpacking in tuple It seems Python 2 does not support this type of unpacking, so it broke Python 2 builds. This should fix it. * Add from __future__ import division for Python 2
-
- 18 Oct, 2019 1 commit
-
-
ekka authored
* Make crop torchscriptable Relevant #1375 * Invert x and y axis * fix lint * Add crop test * revert deletion of space in functional * add import random * add dimension in doc * add import * fix flake8 * change to self.assert* * convert to uint8 * assertTrue * lint
-
- 16 Oct, 2019 1 commit
-
-
Surgan Jandial authored
* vflip and hflip tensor * vflip and hflip tensor * changes made * lint * lint * lint failing
-