  
          self.graph = tf.Graph()
          config = tf.ConfigProto()
          if allow_growth and get_backend() == "nvidia":
              config.gpu_options.allow_growth = True  # pylint:disable=no-member
          try:
              session = tf.Session(graph=tf.Graph(), config=config)
          except tf_error.InternalError as err:
              if "driver version is insufficient" in str(err):
                  msg = ("Your Nvidia Graphics Driver is insufficient for running Faceswap. "
 
</s> remove         model = cv2.dnn.readNetFromCaffe(model[1], model[0])  # pylint: disable=no-member
 </s> add         model = cv2.dnn.readNetFromCaffe(model[1], model[0]) </s> remove             if face.shape[0] < self.input_size:
                interpolation = cv2.INTER_CUBIC  # pylint:disable=no-member
            else:
                interpolation = cv2.INTER_AREA  # pylint:disable=no-member

            face = cv2.resize(face,  # pylint:disable=no-member
                              dsize=(int(self.input_size), int(self.input_size)),
                              interpolation=interpolation)
 </s> add             interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
            face = cv2.resize(face, dsize=sizes, interpolation=interpolation) </s> remove             bottom += abs(top)
            top += abs(top)
 </s> add             shift_down = abs(top)
            bottom += shift_down
            top += shift_down </s> remove         retval = getattr(cv2.dnn, "DNN_TARGET_{}".format(backend))  # pylint: disable=no-member
 </s> add         retval = getattr(cv2.dnn, "DNN_TARGET_{}".format(backend)) </s> remove         text_sizes = [cv2.getTextSize(self.faces["filenames"][idx],  # pylint: disable=no-member
 </s> add         text_sizes = [cv2.getTextSize(self.faces["filenames"][idx],
            config.gpu_options.allow_growth = True
  
          self.graph = tf.Graph()
          config = tf.ConfigProto()
          if allow_growth and get_backend() == "nvidia":
            config.gpu_options.allow_growth = True
          try:
              session = tf.Session(graph=tf.Graph(), config=config)
          except tf_error.InternalError as err:
              if "driver version is insufficient" in str(err):
                  msg = ("Your Nvidia Graphics Driver is insufficient for running Faceswap. "
keep keep keep keep replace keep keep keep keep keep
 # pylint:disable=no-member cleanup (#927)

# pylint:disable=no-member cleanup 
lib/model/session.py