  
  import cv2
  
  from lib import Serializer
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
  
 
</s> remove from lib.utils import rotate_landmarks
 </s> add  </s> remove from lib.utils import cv2_read_img
 </s> add from lib.image import read_image
 </s> remove from lib.training_data import TrainingDataGenerator, stack_images
 </s> add from lib.training_data import TrainingDataGenerator
from lib.faces_detect import rotate_landmarks
  
  import cv2
  
from lib.faces_detect import rotate_landmarks
  from lib import Serializer
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
  
keep keep add keep keep keep keep keep
 Optimize Data Augmentation (#881)

* Move image utils to lib.image
* Add .pylintrc file
* Remove some cv2 pylint ignores
* TrainingData: Load images from disk in batches
* TrainingData: get_landmarks to batch
* TrainingData: transform and flip to batches
* TrainingData: Optimize color augmentation
* TrainingData: Optimize target and random_warp
* TrainingData - Convert _get_closest_match for batching
* TrainingData: Warp To Landmarks optimized
* Save models to threadpoolexecutor
* Move stack_images, Rename ImageManipulation. ImageAugmentation Docstrings
* Masks: Set dtype and threshold for lib.masks based on input face
* Docstrings and Documentation 
lib/alignments.py