  
  from pathlib import Path
  from scandir import scandir
  
  
  def get_folder(path):
      output_dir = Path(path)
      # output_dir.mkdir(parents=True, exist_ok=True)
      return output_dir
 
</s> remove         for filename in self.input_dir:
 </s> add         for filename in tqdm(self.input_dir): </s> remove     return [x.path for x in scandir(directory) if x.name.endswith('.jpg') or x.name.endswith('.jpeg') or x.name.endswith('.png')]
 </s> add     return [x.path for x in scandir(directory) if
     any(map(lambda ext: x.name.lower().endswith(ext), image_extensions))]

image_extensions = [".jpg", ".jpeg", ".png"]

  
  from pathlib import Path
  from scandir import scandir
  
image_extensions = [".jpg", ".jpeg", ".png"]
  
  def get_folder(path):
      output_dir = Path(path)
      # output_dir.mkdir(parents=True, exist_ok=True)
      return output_dir
keep keep keep add 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