          >>>     filename = extract_media.filename
          >>>     image = extract_media.image
          >>>     detected_faces = extract_media.detected_faces
          """
          logger.debug("Running Detection. Phase: '%s'", self.phase)
          # If not multiprocessing, intercept the align in queue for
          # detection phase
          out_queue = self._output_queue
          while True:
              try:
 
</s> remove             self.phase = self._next_phase
            logger.debug("Switching to %s phase", self.phase)
 </s> add             self._phase_index += 1
            logger.debug("Switching to phase: %s", self._current_phase) </s> remove         retval = 1 if self._is_parallel else len(self._flow)
 </s> add         retval = len(self._phases)
        logger.trace(retval)
        return retval

    @property
    def phase_text(self):
        """ str: The plugins that are running in the current phase, formatted for info text
        output. """
        plugin_types = set(self._get_plugin_type_and_index(phase)[0]
                           for phase in self._current_phase)
        retval = ", ".join(plugin_type.title() for plugin_type in list(plugin_types)) </s> remove         retval = self._is_parallel or self.phase == self._final_phase
 </s> add         retval = self._phase_index == len(self._phases) - 1 </s> remove 
        if self._is_parallel:
            for phase in self._flow:
                self._launch_plugin(phase)
        else:
            self._launch_plugin(self.phase)
 </s> add         for phase in self._current_phase:
            self._launch_plugin(phase) </s> remove         self._vram_buffer = 256  # Leave a buffer for VRAM allocation
 </s> add         self._vram_stats = self._get_vram_stats()
        logger.debug("Running Detection. Phase: '%s'", self._current_phase)
          >>>     filename = extract_media.filename
          >>>     image = extract_media.image
          >>>     detected_faces = extract_media.detected_faces
          """
        logger.debug("Running Detection. Phase: '%s'", self._current_phase)
          # If not multiprocessing, intercept the align in queue for
          # detection phase
          out_queue = self._output_queue
          while True:
              try:
keep keep keep keep replace keep keep keep keep keep
 Extract - Better VRAM Allocation in Extraction Pipeline 
plugins/extract/pipeline.py