                                    256: 4,
                                    384: 6}[self.config["output_size"]]
          except KeyError:
              logger.error("Config error: output_size must be one of: 128, 256, or 384.")
              raise FaceswapError("Config error: output_size must be one of: 128, 256, or 384.")
  
          logger.debug("output_size: %s, features: %s, encoder_filters: %s, encoder_dim: %s, "
                       " details: %s, upscale_ratio: %s", self.config["output_size"], self.features,
                       self.encoder_filters, self.encoder_dim, self.details, self.upscale_ratio)
  
 
</s> remove         except KeyError:
 </s> add         except KeyError as err: </s> remove                         viewer: Optional[Callable[[np.ndarray, str], None]],
                        timelapse_kwargs: Optional[Dict[Literal["input_a",
                                                                "input_b",
                                                                "output"], str]]) -> None:
 </s> add                         viewer: T.Optional[T.Callable[[np.ndarray, str], None]],
                        timelapse_kwargs: T.Optional[T.Dict[Literal["input_a",
                                                                    "input_b",
                                                                    "output"], str]]) -> None: </s> remove         self.details = dict(fast=0, good=1)[self.config["details"]]
 </s> add         self.details = {"fast": 0, "good": 1}[self.config["details"]] </s> remove                  image_paths: Dict[Literal["a", "b"], List[str]]) -> None:
 </s> add                  image_paths: T.Dict[Literal["a", "b"], T.List[str]]) -> None: </s> remove                  threshold: Optional[List[float]] = None,
 </s> add                  threshold: T.Optional[T.List[float]] = None,
            raise FaceswapError("Config error: output_size must be one of: "
                                "128, 256, or 384.") from err
                                    256: 4,
                                    384: 6}[self.config["output_size"]]
          except KeyError:
              logger.error("Config error: output_size must be one of: 128, 256, or 384.")
            raise FaceswapError("Config error: output_size must be one of: "
                                "128, 256, or 384.") from err
  
          logger.debug("output_size: %s, features: %s, encoder_filters: %s, encoder_dim: %s, "
                       " details: %s, upscale_ratio: %s", self.config["output_size"], self.features,
                       self.encoder_filters, self.encoder_dim, self.details, self.upscale_ratio)
  
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