mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 09:13:01 +00:00
DeepLabV3+: have argument for number of channels
This commit is contained in:
parent
1dc2ec3a46
commit
6ce121f861
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue