              if plugin_required <= vram_free:
                  logger.debug("Plugin requirements within threshold: (plugin_required: %sMB, "
                               "vram_free: %sMB)", plugin_required, vram_free)
                  return
              # Hacky split across 3 plugins
              available_vram = (vram_free - self._total_vram_required) // 3
              for plugin in self._all_plugins:
                  self._set_plugin_batchsize(plugin, available_vram)
          else:
              for plugin in self._all_plugins:
                  vram_required = plugin.vram + self._vram_buffer
 
</s> remove                 self._set_plugin_batchsize(plugin, available_vram)
 </s> add                 if plugin.vram != 0:
                    self._set_plugin_batchsize(plugin, available_vram) </s> remove         """ Set the batch size for the given plugin based on given available vram """
        plugin.batchsize = int(max(1, available_vram // plugin.vram_per_batch))
        logger.verbose("Reset batchsize for %s to %s", plugin.name, plugin.batchsize)
 </s> add         """ Set the batch size for the given plugin based on given available vram.
        Do not update plugins which have a vram_per_batch of 0 (CPU plugins) due to
        zero division error.
        """
        if plugin.vram_per_batch != 0:
            plugin.batchsize = int(max(1, available_vram // plugin.vram_per_batch))
            logger.verbose("Reset batchsize for %s to %s", plugin.name, plugin.batchsize) </s> remove             filter_out=True: Remove faces that match in the hashlist
            filter_out=False: Remove faces that are not in the hashlist
 </s> add             filter_out=True: Remove faces that match in the hash list
            filter_out=False: Remove faces that are not in the hash list </s> remove         """ Filter in or out faces that match the hashlist
 </s> add         """ Filter in or out faces that match the hash list
            # Hacky split across plugins that use vram
            gpu_plugin_count = sum([1 for plugin in self._all_plugins if plugin.vram != 0])
            available_vram = (vram_free - self._total_vram_required) // gpu_plugin_count
              if plugin_required <= vram_free:
                  logger.debug("Plugin requirements within threshold: (plugin_required: %sMB, "
                               "vram_free: %sMB)", plugin_required, vram_free)
                  return
            # Hacky split across plugins that use vram
            gpu_plugin_count = sum([1 for plugin in self._all_plugins if plugin.vram != 0])
            available_vram = (vram_free - self._total_vram_required) // gpu_plugin_count
            # Hacky split across plugins that use vram
            gpu_plugin_count = sum([1 for plugin in self._all_plugins if plugin.vram != 0])
            available_vram = (vram_free - self._total_vram_required) // gpu_plugin_count
              for plugin in self._all_plugins:
                  self._set_plugin_batchsize(plugin, available_vram)
          else:
              for plugin in self._all_plugins:
                  vram_required = plugin.vram + self._vram_buffer
keep keep keep keep replace replace keep keep keep keep keep
 bugfix: plugins.extract.pipeline - Exclude CPU plugins from vram calculations 
plugins/extract/pipeline.py