          bonum_fortunam = 128
          self.encoder_dim = {0: 512 + bonum_fortunam,
                              1: 1024 + bonum_fortunam,
                              2: 1536 + bonum_fortunam}[self.features]
          self.details = dict(fast=0, good=1)[self.config["details"]]
          try:
              self.upscale_ratio = {128: 2,
                                    256: 4,
                                    384: 6}[self.config["output_size"]]
          except KeyError:
 
</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"]] </s> remove         except KeyError:
 </s> add         except KeyError as err: </s> remove         kwargs = dict(kernel_initializer=self.kernel_initializer)
 </s> add         kwargs = {"kernel_initializer": self.kernel_initializer} </s> remove             raise FaceswapError("Config error: output_size must be one of: 128, 256, or 384.")
 </s> add             raise FaceswapError("Config error: output_size must be one of: "
                                "128, 256, or 384.") from err </s> remove         if get_backend() == "amd":  # Expand out AMD inputs + targets
            model_inputs = [inp for side in model_inputs for inp in side]  # type: ignore
            model_targets = [tgt for side in model_targets for tgt in side]  # type: ignore
 </s> add 
        self.details = {"fast": 0, "good": 1}[self.config["details"]]
          bonum_fortunam = 128
          self.encoder_dim = {0: 512 + bonum_fortunam,
                              1: 1024 + bonum_fortunam,
                              2: 1536 + bonum_fortunam}[self.features]
        self.details = {"fast": 0, "good": 1}[self.config["details"]]
          try:
              self.upscale_ratio = {128: 2,
                                    256: 4,
                                    384: 6}[self.config["output_size"]]
          except KeyError:
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 
plugins/train/model/dlight.py