      return output_dir
  
  
  def get_image_paths(directory):
      return [x.path for x in scandir(directory) if x.name.endswith('.jpg') or x.name.endswith('.jpeg') or x.name.endswith('.png')]
  
  
  def load_images(image_paths, convert=None):
      iter_all_images = (cv2.imread(fn) for fn in image_paths)
      if convert:
 
</s> remove         for filename in self.input_dir:
 </s> add         for filename in tqdm(self.input_dir):
    return [x.path for x in scandir(directory) if
     any(map(lambda ext: x.name.lower().endswith(ext), image_extensions))]

      return output_dir
  
  
  def get_image_paths(directory):
    return [x.path for x in scandir(directory) if
     any(map(lambda ext: x.name.lower().endswith(ext), image_extensions))]
  
  
  def load_images(image_paths, convert=None):
      iter_all_images = (cv2.imread(fn) for fn in image_paths)
      if convert:
keep keep keep keep replace keep keep keep keep keep
 Added progress bar re https://github.com/deepfakes/faceswap/issues/80
Fixed uppercase extensions re
https://github.com/deepfakes/faceswap/issues/75 
lib/utils.py