          linux_update = self.os_version[0].lower() == "linux" and self.backend == "nvidia"
          windows_update = (self.os_version[0].lower() == "windows" and
                            self.backend == "amd" and (3, 8) <= sys.version_info < (3, 9))
  
          if not linux_update and not windows_update:
              return
  
          conda_prefix = os.environ["CONDA_PREFIX"]
          activate_folder = os.path.join(conda_prefix, "etc", "conda", "activate.d")
          deactivate_folder = os.path.join(conda_prefix, "etc", "conda", "deactivate.d")
 
</s> remove         windows_update = (self.os_version[0].lower() == "windows" and
                          self.backend == "amd" and (3, 8) <= sys.version_info < (3, 9))
 </s> add  </s> remove         ext = ".bat" if windows_update else ".sh"
        activate_script = os.path.join(conda_prefix, activate_folder, f"env_vars{ext}")
        deactivate_script = os.path.join(conda_prefix, deactivate_folder, f"env_vars{ext}")
 </s> add         activate_script = os.path.join(conda_prefix, activate_folder, "env_vars.sh")
        deactivate_script = os.path.join(conda_prefix, deactivate_folder, "env_vars.sh") </s> remove         if self.backend == "amd" and sys.version_info >= (3, 9):
            logger.error("The AMD version of Faceswap cannot be installed on versions of Python "
                         "higher than 3.8")
            sys.exit(1)
 </s> add  </s> remove     if sys.version_info < (3,):
        arg_spec = inspect.getargspec(func)
        if accept_all and arg_spec.keywords is not None:
            return True
        return (name in arg_spec.args)
    elif sys.version_info < (3, 3):
 </s> add     if sys.version_info < (3, 3): </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 not linux_update:
          linux_update = self.os_version[0].lower() == "linux" and self.backend == "nvidia"
          windows_update = (self.os_version[0].lower() == "windows" and
                            self.backend == "amd" and (3, 8) <= sys.version_info < (3, 9))
  
        if not linux_update:
              return
  
          conda_prefix = os.environ["CONDA_PREFIX"]
          activate_folder = os.path.join(conda_prefix, "etc", "conda", "activate.d")
          deactivate_folder = os.path.join(conda_prefix, "etc", "conda", "deactivate.d")
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 
setup.py