Fixing the input for Inception v3
@@ -157,7 +157,10 @@ def InceptionV3(include_top=True,
if input_tensor is None:
img_input = Input(shape=input_shape)
else:
+ if not K.is_keras_tensor(input_tensor):
img_input = Input(tensor=input_tensor, shape=input_shape)
+ else:
+ img_input = input_tensor
if K.image_data_format() == 'channels_first':
channel_axis = 1
