- 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>
-
- 04 Jun, 2020 1 commit
-
-
Francisco Massa authored
* Make RandomHorizontalFlip torchscriptable * Make _is_tensor_a_torch_image more generic * Make RandomVerticalFlip torchscriptable (#2283) * Make RandomVerticalFlip torchscriptable * Fix lint
-
- 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
-
- 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
-