  
      def _set_parallel_processing(self, multiprocess):
          """ Set whether to run detect, align, and mask together or separately.
  
          if not multiprocess:
              logger.debug("Parallel processing disabled by cli.")
              return False
  
          if self._vram_stats["count"] == 0:
 
</s> remove         """ Set whether to run detect, align, and mask together or separately """
 </s> add         """ Set whether to run detect, align, and mask together or separately. </s> remove         gpu_stats = GPUStats()
        if gpu_stats.device_count == 0:
 </s> add         if self._vram_stats["count"] == 0: </s> remove         stats = gpu_stats.get_card_most_free()
        vram_free = int(stats["free"])
 </s> add  </s> remove         for idx, mask in enumerate(masker):
            if mask is not None and mask.lower() != "none":
                retval.append("mask_{}".format(idx))
 </s> add         retval.extend(["mask_{}".format(idx)
                       for idx, mask in enumerate(masker)
                       if mask is not None and mask.lower() != "none"]) </s> remove         retval = self._is_parallel or self.phase == self._final_phase
 </s> add         retval = self._phase_index == len(self._phases) - 1
        Parameters
        ----------
        multiprocess: bool
            ``True`` if the single-process command line flag has not been set otherwise ``False``
        """
  
      def _set_parallel_processing(self, multiprocess):
          """ Set whether to run detect, align, and mask together or separately.
  
        Parameters
        ----------
        multiprocess: bool
            ``True`` if the single-process command line flag has not been set otherwise ``False``
        """
          if not multiprocess:
              logger.debug("Parallel processing disabled by cli.")
              return False
  
          if self._vram_stats["count"] == 0:
keep keep keep add keep keep keep keep keep
 Extract - Better VRAM Allocation in Extraction Pipeline 
plugins/extract/pipeline.py