  
  import imageio_ffmpeg as im_ffm
  from tqdm import tqdm
  
  import numpy as np
  import cv2
  
  
  from lib.faces_detect import DetectedFace
  
  
  # Global variables
  _image_extensions = [  # pylint:disable=invalid-name
      ".bmp", ".jpeg", ".jpg", ".png", ".tif", ".tiff"]
  _video_extensions = [  # pylint:disable=invalid-name
      ".avi", ".flv", ".mkv", ".mov", ".mp4", ".mpeg", ".mpg", ".webm", ".wmv"]
 
</s> remove import imageio_ffmpeg as im_ffm
 </s> add  </s> remove from lib.faces_detect import DetectedFace
from lib.utils import rotate_landmarks
 </s> add from lib.faces_detect import DetectedFace, rotate_landmarks </s> remove from lib.utils import (_image_extensions, _video_extensions, count_frames_and_secs, cv2_read_img,
                       hash_image_file, hash_encode_image)
 </s> add from lib.image import count_frames_and_secs, encode_image_with_hash, read_image, read_image_hash
from lib.utils import _image_extensions, _video_extensions </s> remove from lib.utils import get_folder, hash_encode_image, deprecation_warning
 </s> add from lib.utils import get_folder, deprecation_warning
  
  import imageio_ffmpeg as im_ffm
  from tqdm import tqdm
  







  # Global variables
  _image_extensions = [  # pylint:disable=invalid-name
      ".bmp", ".jpeg", ".jpg", ".png", ".tif", ".tiff"]
  _video_extensions = [  # pylint:disable=invalid-name
      ".avi", ".flv", ".mkv", ".mov", ".mp4", ".mpeg", ".mpg", ".webm", ".wmv"]
keep keep keep keep replace replace replace replace replace replace replace 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/utils.py