          2 - filter out WARNING logs
          3 - filter out ERROR logs  """
  
      logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
      from lib.logger import get_loglevel
      numeric_level = get_loglevel(loglevel)
      loglevel = "2" if numeric_level > 15 else "0"
      logger.debug("System Verbosity level: %s", loglevel)
      os.environ['TF_CPP_MIN_LOG_LEVEL'] = loglevel
      if loglevel != '0':
 
</s> remove     from lib.queue_manager import queue_manager
 </s> add     from lib.queue_manager import queue_manager  # pylint:disable=import-outside-toplevel </s> remove                 if self.logger:
                    self.logger.debug("macOS Detected. Using pynvx")
 </s> add                 self._log("debug", "macOS Detected. Using pynvx") </s> remove     def is_plaidml(self):
        """ Return whether running on plaidML backend """
        return self.plaid is not None

    def initialize(self, log=False):
        """ Initialize pynvml """
        if not self.initialized:
            if K.backend() == "plaidml.keras.backend":
                loglevel = "INFO"
                if self.logger:
                    self.logger.debug("plaidML Detected. Using plaidMLStats")
                    loglevel = self.logger.getEffectiveLevel()
                self.plaid = plaidlib(loglevel=loglevel, log=log)
 </s> add     def sys_info(self):
        """ dict: GPU Stats that are required for system information logging.

        The dictionary contains the following data:

            **vram** (`list`): the total amount of VRAM in Megabytes for each GPU as pertaining to
            :attr:`_handles`

            **driver** (`str`): The GPU driver version that is installed on the OS

            **devices** (`list`): The device name of each GPU on the system as pertaining
            to :attr:`_handles`

            **devices_active** (`list`): The device name of each active GPU on the system as
            pertaining to :attr:`_handles`
        """
        return dict(vram=self._vram,
                    driver=self._driver,
                    devices=self._devices,
                    devices_active=self._active_devices)

    def _log(self, level, message):
        """ If the class has been initialized with :attr:`log` as `True` then log the message
        otherwise skip logging.

        Parameters
        ----------
        level: str
            The log level to log at
        message: str
            The message to log
        """
        if self._logger is None:
            return
        logger = getattr(self._logger, level.lower())
        logger(message)

    def _initialize(self, log=False):
        """ Initialize the library that will be returning stats for the system's GPU(s).
        For Nvidia (on Linux and Windows) the library is `pynvml`. For Nvidia (on macOS) the
        library is `pynvx`. For AMD `plaidML` is used.

        Parameters
        ----------
        log: bool, optional
            Whether the class should output information to the logger. There may be occasions where
            the logger has not yet been set up when this class is queried. Attempting to log in
            these instances will raise an error. If GPU stats are being queried prior to the
            logger being available then this parameter should be set to ``False``. Otherwise set
            to ``True``. Default: ``False``
        """
        if not self._initialized:
            if get_backend() == "amd":
                self._log("debug", "AMD Detected. Using plaidMLStats")
                loglevel = "INFO" if self._logger is None else self._logger.getEffectiveLevel()
                self._plaid = plaidlib(loglevel=loglevel, log=log) </s> remove from lib.utils import FaceswapError, get_folder, get_image_paths
 </s> add from lib.utils import FaceswapError, get_backend, get_folder, get_image_paths </s> remove             hlp = "Crate a new {}...".format(task)
 </s> add             hlp = "Create a new {}...".format(task)
    from lib.logger import get_loglevel  # pylint:disable=import-outside-toplevel
          2 - filter out WARNING logs
          3 - filter out ERROR logs  """
  
      logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
    from lib.logger import get_loglevel  # pylint:disable=import-outside-toplevel
      numeric_level = get_loglevel(loglevel)
      loglevel = "2" if numeric_level > 15 else "0"
      logger.debug("System Verbosity level: %s", loglevel)
      os.environ['TF_CPP_MIN_LOG_LEVEL'] = loglevel
      if loglevel != '0':
keep keep keep keep replace keep keep keep keep keep
 Core Updates (#1015)

- Remove lib.utils.keras_backend_quiet and replace with get_backend() where relevant
- Document lib.gpu_stats and lib.sys_info
- Remove call to GPUStats.is_plaidml from convert and replace with get_backend()
- lib.gui.menu - typofix 
lib/utils.py