          if i in ("Y", "y"):
              logger.info("DirectML Support Enabled")
              self._env.backend = "directml"
  
      def _amd_ask_enable(self) -> None:
          """ Set backend to 'amd' to use plaidML if AMD support required """
          msg = ""
          if self._env.os_version[0] == "Windows":
              msg = "AMD users should select 'DirectML support' if possible.\r\n"
          if self._env.os_version[0] == "Linux":
              msg = "AMD users should select 'ROCm support' if possible.\r\n"
  
          logger.info("AMD Support:\r\nThis version is deprecated and will be removed from a future "
                      "update.\r\n%s"
                      "Nvidia Users MUST answer 'no' to this option.", msg)
          i = input("Enable AMD Support? [y/N] ")
          if i in ("Y", "y"):
              logger.info("AMD Support Enabled")
              self._env.backend = "amd"
  
      def _user_input(self) -> None:
          """ Get user input for AMD/DirectML/ROCm/Cuda/Docker """
          self._directml_ask_enable()
          self._rocm_ask_enable()
          if not self._env.backend:
 
</s> remove         if not self._env.backend:
            self._amd_ask_enable()
 </s> add  </s> remove 
        Notes
        -----
        Clip-norm is ballooning VRAM usage, which is not expected behavior and may be a bug in
        Keras/Tensorflow.

        PlaidML has a bug regarding the clip-norm parameter See:
        https://github.com/plaidml/plaidml/issues/228. We workaround by simply not adding this
        parameter for AMD backend users.
 </s> add  </s> remove         if backend != "amd" and tf_ver < min_ver:
 </s> add         if tf_ver < min_ver: </s> remove         if backend == "amd":
            return  # No settings for AMD
 </s> add  </s> remove         if get_backend() == "amd" and model.no_amd:
            valid = [k for k, v in _MODEL_MAPPING.items() if not v.no_amd]
            raise FaceswapError(f"'{arch}' is not compatible with the AMD backend. Choose one of "
                                f"{valid}.")

 </s> add 
          if i in ("Y", "y"):
              logger.info("DirectML Support Enabled")
              self._env.backend = "directml"
  
















      def _user_input(self) -> None:
          """ Get user input for AMD/DirectML/ROCm/Cuda/Docker """
          self._directml_ask_enable()
          self._rocm_ask_enable()
          if not self._env.backend:
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace 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 
setup.py