mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-25 10:32:59 +00:00
fiddle with Conv2DTranspose
you need to set the `stride` argument to actually get it to upscale..... :P
This commit is contained in:
parent
d544553800
commit
92c380bff5
1 changed files with 6 additions and 1 deletions
|
@ -36,7 +36,12 @@ def convnext_inverse(layer_in, depths, dims):
|
|||
def block_upscale(layer_in, block_number, depth, dim):
|
||||
layer_next = layer_in
|
||||
|
||||
layer_next = tf.keras.layers.Conv2DTranspose(name=f"cns.stage{block_number}.end.convtp", filters=dim, kernel_size=4, padding="same")(layer_next)
|
||||
layer_next = tf.keras.layers.Conv2DTranspose(
|
||||
name=f"cns.stage{block_number}.end.convtp",
|
||||
filters=dim,
|
||||
kernel_size=4,
|
||||
stride=2
|
||||
)(layer_next)
|
||||
layer_next = tf.keras.layers.LayerNormalization(name=f"cns.stage{block_number}.end.norm", epsilon=1e-6)(layer_next)
|
||||
|
||||
for i in range(depth):
|
||||
|
|
Loading…
Reference in a new issue