  from urllib.request import urlretrieve
  import os
  from os.path import join as pathjoin, expanduser
  
  _TRAIN_ARGS = (1, 1) if os.environ.get("FACESWAP_BACKEND", "cpu").lower() == "amd" else (4, 4)
  FAIL_COUNT = 0
  TEST_COUNT = 0
  _COLORS = {
      "FAIL": "\033[1;31m",
      "OK": "\033[1;32m",
 
</s> remove             item: Union[Literal["EOF"], ConvertItem] = self._in_queue.get()
 </s> add             item: T.Union[Literal["EOF"], ConvertItem] = self._in_queue.get() </s> remove         batch: List[ConvertItem] = []
 </s> add         batch: T.List[ConvertItem] = [] </s> remove         autoencoder = KerasModel(inputs, outputs, name=self.model_name)
 </s> add         autoencoder = KModel(inputs, outputs, name=self.model_name) </s> remove from lib.utils import get_backend
 </s> add # Fix intellisense/linting for tf.keras' thoroughly broken import system
keras = tf.keras
K = keras.backend </s> remove         self.features = dict(lowmem=0, fair=1, best=2)[self.config["features"]]
 </s> add         self.features = {"lowmem": 0, "fair": 1, "best": 2}[self.config["features"]]
  from urllib.request import urlretrieve
  import os
  from os.path import join as pathjoin, expanduser
  

  FAIL_COUNT = 0
  TEST_COUNT = 0
  _COLORS = {
      "FAIL": "\033[1;31m",
      "OK": "\033[1;32m",
keep keep keep keep replace keep keep keep keep keep
 Remove plaidML support (#1325)

* Remove PlaidML reference from readme files

* Remove AMD option from installers

* remove amd requirements and update setup.py

* remove plaidml test from CI workflow

* gpustats: remove plaidml backend

* plaid removals:
  - faceswap.py - python version check
  - setup.cfg - plaidml typing ignore
  - lib.keras_utils - All plaid code
  - lib.launcher.py - All plaidml checks and configuration

* remove tf2.2 specific code from GUI event reader

* lib.model - remove all plaidml implementations

* plugins.extract - remove plaidml code

* plugins.train remove plaidml code

* lib.convert - remove plaidml code

* tools.model: remove plaidml code

* Remove plaidML tests from unit tests

* remove plaidml_utils and docsting cleanups

* Remove plaidML refs from configs

* fix keras imports 
tests/simple_tests.py