You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/11/06 00:52:31 UTC

[GitHub] piiswrong opened a new issue #8556: [Call for Contribution] Image augmenter operators

piiswrong opened a new issue #8556: [Call for Contribution] Image augmenter operators
URL: https://github.com/apache/incubator-mxnet/issues/8556
 
 
   # Goal 
   Fuse operations like (x - mean)/std into a single operator in backend to speed up IO.
   
   # References
   
   - https://github.com/pytorch/vision/blob/master/torchvision/transforms/transforms.py
   - https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/image/image.py
   - https://github.com/huangzehao/incubator-mxnet-bk/blob/master/src/io/image_aug_default.cc#L240
   https://www.tensorflow.org/api_guides/python/image#Image_Adjustments
   
   # Operators
   
   ## mx.nd/sym/image.resized_crop(data, box, size, interp) -> out
   - data: H x W x C uint8 tensor
   - box: tuple of 4 integers (y, x, h, w)
   - size: size integer or (height, width) tuple
   - interp: default bilinear
   - out: cropped image tensor
   
   ## mx.nd/sym.image.flip(data, axis) -> out
   - data: H x W x C uint8 tensor
   - axis: 0 or 1, axis along which to flip
   - out: C x H x W tensor
   Note: needs to support inplace operation.
   
   ## mx.nd/sym.image.to_tensor(data) -> out
   - data: H x W x C uint8 tensor
   - out: C x H x W float32 tensor
   
   ## mx.nd/sym.image.normalize(data, mean, std) -> out
   - data: C x H x W tensor
   - mean: tuple of 1 or 3 floats
   - std: tuple of 1 or 3 floats
   
   ## mx.nd/sym.image.random_brightness(data, max_brightness) -> out
   - data: C x H x W tensor
   - max_brightness: float
   
   ## mx.nd/sym.image.random_contrast(data, max_contrast) -> out
   - data: C x H x W tensor
   - max_contrast: float
   
   ## mx.nd/sym.image.random_saturation(data, max_saturation) -> out
   - data: C x H x W tensor
   - max_saturation: float
   
   ## mx.nd/sym.image.random_hue(data, max_hue) -> out
   - data: C x H x W tensor
   - max_hue: float
   
   ## mx.nd/sym.image.random_color_jitter(data, max_brightness, max_contrast, max_saturation, max_hue) -> out
   Apply 4 augs in random order
   
   ## mx.nd/sym.image.random_lighting(data, alphastd, eig) -> out
   - data: C x H x W tensor
   - alphastd: float
   - eig: tuple of 9 floats (might be better to use ndarray? not sure...)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services