          if not multiprocess:
              logger.debug("Parallel processing disabled by cli.")
              return False
  
          gpu_stats = GPUStats()
          if gpu_stats.device_count == 0:
              logger.debug("No GPU detected. Enabling parallel processing.")
              return True
  
          if get_backend() == "amd":
              logger.debug("Parallel processing disabled by amd")
 
</s> remove         stats = gpu_stats.get_card_most_free()
        vram_free = int(stats["free"])
 </s> add  </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         if sum([plugin.vram for plugin in self._all_plugins]) == 0:
 </s> add         if sum([plugin.vram for plugin in self._active_plugins]) == 0: </s> remove                        stats["device"],
                       vram_free,
                       int(stats["total"]))
        if vram_free <= self._total_vram_required:
 </s> add                        self._vram_stats["device"],
                       self._vram_stats["vram_free"],
                       self._vram_stats["vram_total"])
        if self._vram_stats["vram_free"] <= self._total_vram_required:
        if self._vram_stats["count"] == 0:
          if not multiprocess:
              logger.debug("Parallel processing disabled by cli.")
              return False
  
        if self._vram_stats["count"] == 0:
        if self._vram_stats["count"] == 0:
              logger.debug("No GPU detected. Enabling parallel processing.")
              return True
  
          if get_backend() == "amd":
              logger.debug("Parallel processing disabled by amd")
keep keep keep keep replace replace keep keep keep keep keep
 Extract - Better VRAM Allocation in Extraction Pipeline 
plugins/extract/pipeline.py