  """ Neural Network Blocks for faceswap.py. """
  
  import logging
  
  from keras.layers import (Activation, Add, BatchNormalization, Concatenate, Conv2D as KConv2D,
                            Conv2DTranspose, DepthwiseConv2D as KDepthwiseConv2d, LeakyReLU, PReLU,
                            SeparableConv2D, UpSampling2D)
  from keras.initializers import he_uniform, VarianceScaling
  
  from .initializers import ICNR, ConvolutionAware
  from .layers import PixelShuffler, ReflectionPadding2D, Swish, KResizeImages
  from .normalization import InstanceNormalization
  
 
</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  </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
from lib.utils import get_backend

  """ Neural Network Blocks for faceswap.py. """
  
  import logging
  
from lib.utils import get_backend

from lib.utils import get_backend

from lib.utils import get_backend

from lib.utils import get_backend

  
  from .initializers import ICNR, ConvolutionAware
  from .layers import PixelShuffler, ReflectionPadding2D, Swish, KResizeImages
  from .normalization import InstanceNormalization
  
keep keep keep keep replace replace replace replace 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) 
lib/model/nn_blocks.py