  from lib.utils import get_backend
  
  from .original import Model as OriginalModel, KerasModel
  
  if get_backend() == "amd":
      from keras.initializers import RandomNormal  # pylint:disable=no-name-in-module
      from keras.layers import add, Dense, Flatten, Input, LeakyReLU, Reshape
  else:
      # Ignore linting errors from Tensorflow's thoroughly broken import system
      from tensorflow.keras.initializers import RandomNormal  # noqa pylint:disable=import-error,no-name-in-module
      from tensorflow.keras.layers import add, Dense, Flatten, Input, LeakyReLU, Reshape  # noqa pylint:disable=import-error,no-name-in-module
  
  
  class Model(OriginalModel):
      """ Villain Faceswap Model """
      def __init__(self, *args, **kwargs):
 
</s> remove if get_backend() == "amd":
    from keras.initializers import RandomNormal  # pylint:disable=no-name-in-module
    from keras.layers import Dense, Flatten, Input, LeakyReLU, Reshape, SpatialDropout2D
else:
    # Ignore linting errors from Tensorflow's thoroughly broken import system
    from tensorflow.keras.initializers import RandomNormal  # noqa pylint:disable=import-error,no-name-in-module
    from tensorflow.keras.layers import Dense, Flatten, Input, LeakyReLU, Reshape, SpatialDropout2D  # noqa pylint:disable=import-error,no-name-in-module
 </s> add from lib.model.nn_blocks import Conv2DOutput, Conv2DBlock, ResidualBlock, UpscaleBlock
from ._base import ModelBase </s> remove if get_backend() == "amd":
    from keras.layers import Dense, Flatten, Input, Reshape
else:
    # Ignore linting errors from Tensorflow's thoroughly broken import system
    from tensorflow.keras.layers import Dense, Flatten, Input, Reshape  # noqa pylint:disable=import-error,no-name-in-module
 </s> add from lib.model.nn_blocks import Conv2DOutput, Conv2DBlock, UpscaleBlock
from .original import Model as OriginalModel </s> remove if get_backend() == "amd":
    from keras.initializers import RandomNormal  # pylint:disable=no-name-in-module
    from keras.layers import Dense, Flatten, Input, LeakyReLU, Reshape
else:
    # Ignore linting errors from Tensorflow's thoroughly broken import system
    from tensorflow.keras.initializers import RandomNormal  # noqa pylint:disable=import-error,no-name-in-module
    from tensorflow.keras.layers import Dense, Flatten, Input, LeakyReLU, Reshape  # noqa pylint:disable=import-error,no-name-in-module
 </s> add from lib.model.nn_blocks import Conv2DOutput, Conv2DBlock, ResidualBlock, UpscaleBlock
from ._base import ModelBase </s> remove from lib.model.nn_blocks import Conv2DOutput, Conv2DBlock, ResidualBlock, UpscaleBlock
from lib.utils import get_backend
from ._base import ModelBase, KerasModel
 </s> add # Ignore linting errors from Tensorflow's thoroughly broken import system
from tensorflow.keras.initializers import RandomNormal  # pylint:disable=import-error
from tensorflow.keras.layers import Dense, Flatten, Input, LeakyReLU, Reshape  # noqa:E501  # pylint:disable=import-error
from tensorflow.keras.models import Model as KModel  # pylint:disable=import-error </s> remove else:
    # Ignore linting errors from Tensorflow's thoroughly broken import system
    from tensorflow.keras.layers import Concatenate, Dense, Flatten, Input, Reshape  # noqa pylint:disable=import-error,no-name-in-module
 </s> add from ._base import ModelBase
from .original import Model as OriginalModel
  from lib.utils import get_backend
  
  from .original import Model as OriginalModel, KerasModel
  
from .original import Model as OriginalModel
from .original import Model as OriginalModel
from .original import Model as OriginalModel
from .original import Model as OriginalModel
from .original import Model as OriginalModel
from .original import Model as OriginalModel
from .original import Model as OriginalModel
  
  
  class Model(OriginalModel):
      """ Villain Faceswap Model """
      def __init__(self, *args, **kwargs):
keep keep keep keep 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 
plugins/train/model/villain.py