                  arguments.output_dir = self._output_for_input(location)
              else:
                  arguments = self._args
              extract = _Extract(self._extractor, arguments)
              extract.process()
              self._extractor.reset_phase_index()
  
  
  class Filter():
      """ Obtains and holds face identity embeddings for any filter/nfilter image files
 
</s> remove                 logger.info("Processing job %s of %s: '%s'", job_no + 1, len(inputs), location)
 </s> add                 logger.info("Processing job %s of %s: '%s'",
                            job_no + 1, len(self._input_locations), location) </s> remove         """ Join the running threads, catching and re-raising any errors """
 </s> add         """ Join the running threads, catching and re-raising any errors

        Clear the list of threads for class instance re-use
        """ </s> remove             logger.debug("Thread pre-exists and is alive: %s", self._thread)
 </s> add             logger.trace("Thread pre-exists and is alive: %s",  # type:ignore[attr-defined]
                         self._thread) </s> remove         logger.debug("Setting thread")
 </s> add         logger.trace("Setting thread")  # type:ignore[attr-defined]
            if len(self._input_locations) > 1:
                # TODO - Running this in a process is hideously hacky. However, there is a memory
                # leak in some instances when running in batch mode. Many days have been spent
                # trying to track this down to no avail (most likely coming from C-code.) Running
                # the extract job inside a process prevents the memory leak in testing. This should
                # be replaced if/when the memory leak is found
                proc = Process(target=extract.process)
                proc.start()
                proc.join()
            else:
                extract.process()
                  arguments.output_dir = self._output_for_input(location)
              else:
                  arguments = self._args
              extract = _Extract(self._extractor, arguments)
            if len(self._input_locations) > 1:
                # TODO - Running this in a process is hideously hacky. However, there is a memory
                # leak in some instances when running in batch mode. Many days have been spent
                # trying to track this down to no avail (most likely coming from C-code.) Running
                # the extract job inside a process prevents the memory leak in testing. This should
                # be replaced if/when the memory leak is found
                proc = Process(target=extract.process)
                proc.start()
                proc.join()
            else:
                extract.process()
              self._extractor.reset_phase_index()
  
  
  class Filter():
      """ Obtains and holds face identity embeddings for any filter/nfilter image files
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Patch extract memory leak in batch mode 
scripts/extract.py