mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 01:12:59 +00:00
autoset the value of factor
This commit is contained in:
parent
214afcc914
commit
ac040717e6
1 changed files with 2 additions and 1 deletions
|
@ -160,8 +160,9 @@ if PATH_CHECKPOINT is None:
|
|||
x = backbone.get_layer("conv4_block6_2_relu").output
|
||||
x = DilatedSpatialPyramidPooling(x)
|
||||
|
||||
factor = 4 if upsample == 2 else 8 # else: upsample == 1. other values are not supported yet because maths
|
||||
input_a = tf.keras.layers.UpSampling2D(
|
||||
size=(image_size // 4 // x.shape[1] * 2, image_size // 4 // x.shape[2] * 2), # <--- UPSAMPLE after pyramid
|
||||
size=(image_size // factor // x.shape[1] * 2, image_size // factor // x.shape[2] * 2), # <--- UPSAMPLE after pyramid
|
||||
interpolation="bilinear",
|
||||
)(x)
|
||||
input_b = backbone.get_layer("conv2_block3_2_relu").output
|
||||
|
|
Loading…
Reference in a new issue