  import argparse
  import os
  import time
  
  from lib.utils import get_image_paths, get_folder, load_images
  
  class FullPaths(argparse.Action):
      """Expand user- and relative-paths"""
 
</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))]
 </s> remove         for filename in self.input_dir:
 </s> add         for filename in tqdm(self.input_dir):
from tqdm import tqdm
  import argparse
  import os
  import time
from tqdm import tqdm
  
  from lib.utils import get_image_paths, get_folder, load_images
  
  class FullPaths(argparse.Action):
      """Expand user- and relative-paths"""
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/cli.py