  
          self.process_directory()
  
      def process_directory(self):
          for filename in self.input_dir:
              if self.arguments.verbose:
                  print('Processing: {}'.format(os.path.basename(filename)))
  
              self.process_image(filename)
              self.images_processed = self.images_processed + 1
 
</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))]

        for filename in tqdm(self.input_dir):
  
          self.process_directory()
  
      def process_directory(self):
        for filename in tqdm(self.input_dir):
              if self.arguments.verbose:
                  print('Processing: {}'.format(os.path.basename(filename)))
  
              self.process_image(filename)
              self.images_processed = self.images_processed + 1
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/cli.py