          A list of integers of device IDs that should not be used by Faceswap
      """
      logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
      logger.info("Setting up for PlaidML")
      logger.verbose("Setting Keras Backend to PlaidML")
      # Add explicitly excluded devices to list. The contents are checked in AMDstats
      if exclude_devices:
          _EXCLUDE_DEVICES.extend(int(idx) for idx in exclude_devices)
      os.environ["KERAS_BACKEND"] = "plaidml.keras.backend"
      stats = AMDStats(log_level)
 
</s> remove     stats = AMDStats(log_level)
 </s> add     stats = AMDStats(log_level=log_level) </s> remove         details = [json.loads(d.details.decode("utf-8"))
                   for d in self._all_devices if d.details]
 </s> add         details = []
        for dev in self._all_devices:
            if dev.details:
                details.append(json.loads(dev.details.decode("utf-8")))
            else:
                details.append(dict(vendor=dev.id.decode("utf-8"),
                                    name=dev.description.decode("utf-8"),
                                    globalMemSize=4 * 1024 * 1024 * 1024))  # 4GB dummy ram </s> remove     print("%s%s%s%s" % (
        color, "" if not bold else _COLORS["BOLD"], text, _COLORS["ENDC"]
    ))
 </s> add     fmt = '' if not bold else _COLORS['BOLD']
    print(f"{color}{fmt}{text}{_COLORS['ENDC']}") </s> remove         self._ctx: Optional(plaidml.Context) = None
        self._supported_devices: Optional(List[plaidml._DeviceConfig]) = None
        self._all_devices: Optional(List[plaidml._DeviceConfig]) = None
        self._device_details: Optional(List[dict]) = None
 </s> add         self._ctx: Optional[plaidml.Context] = None
        self._supported_devices: List[plaidml._DeviceConfig] = []
        self._all_devices: List[plaidml._DeviceConfig] = []
        self._device_details: List[dict] = [] </s> remove             "Train lightweight model for 5 iterations WITHOUT WTL.",
 </s> add             "Train lightweight model for 1 iterations WITHOUT WTL.",
    logger.verbose("Setting Keras Backend to PlaidML")  # type:ignore
          A list of integers of device IDs that should not be used by Faceswap
      """
      logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
      logger.info("Setting up for PlaidML")
    logger.verbose("Setting Keras Backend to PlaidML")  # type:ignore
      # Add explicitly excluded devices to list. The contents are checked in AMDstats
      if exclude_devices:
          _EXCLUDE_DEVICES.extend(int(idx) for idx in exclude_devices)
      os.environ["KERAS_BACKEND"] = "plaidml.keras.backend"
      stats = AMDStats(log_level)
keep keep keep keep replace keep keep keep keep keep
 Fix AMD Tests + docs 
lib/gpu_stats/amd.py