  
          mat = cv2.getRotationMatrix2D(  # pylint: disable=no-member
              (width // 2, height // 2), rotation, scale)
          mat[:, 2] += (tnx, tny)
          result = cv2.warpAffine(  # pylint: disable=no-member
              image, mat, (width, height),
              borderMode=cv2.BORDER_REPLICATE)  # pylint: disable=no-member
  
          logger.trace("Randomly transformed image")
          return result
 
</s> remove             borderMode=cv2.BORDER_REPLICATE)  # pylint: disable=no-member
 </s> add             borderMode=cv2.BORDER_REPLICATE)  # pylint:disable=no-member </s> remove         mat = cv2.getRotationMatrix2D(  # pylint: disable=no-member
 </s> add         mat = cv2.getRotationMatrix2D(  # pylint:disable=no-member </s> remove             cv2.INTER_AREA)  # pylint: disable=no-member
 </s> add             cv2.INTER_AREA)  # pylint:disable=no-member </s> remove                                  cv2.INTER_LINEAR,  # pylint: disable=no-member
                                 cv2.BORDER_TRANSPARENT)  # pylint: disable=no-member
 </s> add                                  cv2.INTER_LINEAR,  # pylint:disable=no-member
                                 cv2.BORDER_TRANSPARENT)  # pylint:disable=no-member </s> remove         warped_image = cv2.resize(  # pylint: disable=no-member
 </s> add         warped_image = cv2.resize(  # pylint:disable=no-member
        result = cv2.warpAffine(  # pylint:disable=no-member
  
          mat = cv2.getRotationMatrix2D(  # pylint: disable=no-member
              (width // 2, height // 2), rotation, scale)
          mat[:, 2] += (tnx, tny)
        result = cv2.warpAffine(  # pylint:disable=no-member
              image, mat, (width, height),
              borderMode=cv2.BORDER_REPLICATE)  # pylint: disable=no-member
  
          logger.trace("Randomly transformed image")
          return result
keep keep keep keep replace keep keep keep keep keep
 Color Augmentation method (#752)

* Color Augmentation: Implement testing code

* Tweak Contrast and Lighting augmentation amounts

* Prevent color augmentation from entering timelapse

* Remove all augmentations from preview images 
lib/training_data.py