diff --git a/aimodel/src/deeplabv3_plus_test.py b/aimodel/src/deeplabv3_plus_test.py index b0a7d03..0644e6c 100755 --- a/aimodel/src/deeplabv3_plus_test.py +++ b/aimodel/src/deeplabv3_plus_test.py @@ -118,8 +118,8 @@ def DilatedSpatialPyramidPooling(dspp_input): return output -def DeeplabV3Plus(image_size, num_classes): - model_input = tf.keras.Input(shape=(image_size, image_size, 3)) +def DeeplabV3Plus(image_size, num_classes, num_channels=3): + model_input = tf.keras.Input(shape=(image_size, image_size, num_channels)) resnet50 = tf.keras.applications.ResNet50( weights="imagenet", include_top=False, input_tensor=model_input )