class_docstr: A color related data augmentation used in Single Shot Multibox Detector (SSD).
  
  Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy,
     Scott Reed, Cheng-Yang Fu, Alexander C. Berg.
     SSD: Single Shot MultiBox Detector. ECCV 2016.
  
  Implementation based on:
  
   https://github.com/weiliu89/caffe/blob
     /4817bf8b4200b35ada8ed0dc378dceaf38c539e4
     /src/caffe/util/im_transforms.cpp
  
   https://github.com/chainer/chainercv/blob
     /7159616642e0be7c5b3ef380b848e16b7e99355b/chainercv
     /links/model/ssd/transforms.py
class_docstr_tok: ["A","color","related","data","augmentation","used","in","Single","Shot","Multibox","Detector","(","SSD",")",".","Wei","Liu",",","Dragomir","Anguelov",",","Dumitru","Erhan",",","Christian","Szegedy",",","Scott","Reed",",","Cheng-Yang","Fu",",","Alexander","C.","Berg",".","SSD",":","Single","Shot","MultiBox","Detector",".","ECCV","2016",".","Implementation","based","on",":","https",":","\/\/github.com\/weiliu89\/caffe\/blob","\/4817bf8b4200b35ada8ed0dc378dceaf38c539e4","\/src\/caffe\/util\/im_transforms.cpp","https",":","\/\/github.com\/chainer\/chainercv\/blob","\/7159616642e0be7c5b3ef380b848e16b7e99355b\/chainercv","\/links\/model\/ssd\/transforms.py"]
code: def convert(self, img, alpha=1, beta=0):
      img = img.astype(np.float32) * alpha + beta
      img = np.clip(img, 0, 255)
      return img.astype(np.uint8)
  
file_path: detectron2/projects/PointRend/point_rend/color_augmentation.py
imports: import numpy
  import random
  import cv2
  from fvcore.transforms.transform import Transform
label_desc: Use image node_id 5 for calling the ColorAugSSDTransform obj's underlying member method code with example usage: obj.convert(img, alpha, beta) and returns: img