  from lib.utils import get_backend, FaceswapError
  
  if get_backend() == "amd":
      from keras import applications as kapp, backend as K
      from keras.layers import (
          Add, BatchNormalization, Concatenate, Dense, Dropout, Flatten, GaussianNoise,
          GlobalAveragePooling2D, GlobalMaxPooling2D, Input, LeakyReLU, Reshape, UpSampling2D,
          Conv2D as KConv2D)
 
</s> remove     from keras import applications as kapp
 </s> add     from keras import applications as kapp, backend as K
    from keras.layers import (
        Add, BatchNormalization, Concatenate, Dense, Dropout, Flatten, GaussianNoise,
        GlobalAveragePooling2D, GlobalMaxPooling2D, Input, LeakyReLU, Reshape, UpSampling2D,
        Conv2D as KConv2D)
    from keras.models import clone_model </s> remove     from tensorflow.keras import applications as kapp

from ._base import KerasModel, ModelBase, logger, _get_all_sub_models
 </s> add     # Ignore linting errors from Tensorflow's thoroughly broken import system
    from tensorflow.keras import applications as kapp, backend as K  # pylint:disable=import-error
    from tensorflow.keras.layers import (  # pylint:disable=import-error,no-name-in-module
        Add, BatchNormalization, Concatenate, Dense, Dropout, Flatten, GaussianNoise,
        GlobalAveragePooling2D, GlobalMaxPooling2D, Input, LeakyReLU, Reshape, UpSampling2D,
        Conv2D as KConv2D)
    from tensorflow.keras.models import clone_model  # noqa pylint:disable=import-error,no-name-in-module </s> remove import keras.backend as K
from keras.layers import (
    Add, BatchNormalization, Concatenate, Dense, Dropout, Flatten, GaussianNoise,
    GlobalAveragePooling2D, GlobalMaxPooling2D, Input, LeakyReLU, Reshape, UpSampling2D,
    Conv2D as KConv2D)
from keras.models import clone_model

 </s> add  </s> remove from keras import backend as K
from keras.layers import (Activation, Add, BatchNormalization, Concatenate, Conv2D,
                          GlobalAveragePooling2D, Input, MaxPooling2D, Multiply, Reshape,
                          UpSampling2D, ZeroPadding2D)

 </s> add 
from ._base import KerasModel, ModelBase, logger, _get_all_sub_models

  from lib.utils import get_backend, FaceswapError
  
from ._base import KerasModel, ModelBase, logger, _get_all_sub_models

  if get_backend() == "amd":
      from keras import applications as kapp, backend as K
      from keras.layers import (
          Add, BatchNormalization, Concatenate, Dense, Dropout, Flatten, GaussianNoise,
          GlobalAveragePooling2D, GlobalMaxPooling2D, Input, LeakyReLU, Reshape, UpSampling2D,
          Conv2D as KConv2D)
keep add keep keep keep keep keep keep
 Update all Keras Imports to be conditional (#1214)

* Remove custom keras importer

* first round keras imports fix

* launcher.py: Remove KerasFinder references

* 2nd round keras imports update (lib and extract)

* 3rd round keras imports update (train)

* remove KerasFinder from tests

* 4th round keras imports update (tests) 
plugins/train/model/phaze_a.py