          self.serializer = None
          self.vgg_face = None
  
      def process(self):
          """ Main processing function of the sort tool """
  
 
</s> remove     exit(0)
 </s> add     sys.exit(0) </s> remove         img_list = np.array(filename_list)[indices]
 </s> add         img_list = np.array(filenames)[indices] </s> remove         filename_list, image_list = self._get_images()
 </s> add  </s> remove         logger.info("Calculating face identifiers...")
        preds = np.array([self.vgg_face.predict(img)
                          for img in tqdm(image_list, desc="Calculating...", file=sys.stdout)])
 </s> add         # TODO This should be set in init
        self._loader = ImagesLoader(self.args.input_dir)

        filenames = []
        preds = np.empty((self._loader.count, 512), dtype="float32")
        for idx, (filename, image) in enumerate(tqdm(self._loader.load(),
                                                     desc="Classifying Faces...",
                                                     total=self._loader.count)):
            filenames.append(filename)
            preds[idx] = self.vgg_face.predict(image) </s> remove         free_ram = psutil.virtual_memory().free / divider
 </s> add         free_ram = psutil.virtual_memory().available / divider
        # TODO set this as ImagesLoader in init. Need to move all processes to use it
        self._loader = None
          self.serializer = None
          self.vgg_face = None
        # TODO set this as ImagesLoader in init. Need to move all processes to use it
        self._loader = None
  
      def process(self):
          """ Main processing function of the sort tool """
  
keep add keep keep keep keep
 tools.sort - Optimize sort by face 
tools/sort.py