mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-25 10:32:59 +00:00
the long night continues
This commit is contained in:
parent
dc159ecfdb
commit
b5e08f92fe
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ import tensorflow as tf
|
|||
from .components.convnext_inverse import do_convnext_inverse
|
||||
|
||||
def model_rainfallwater_segmentation(metadata, feature_dim_in, shape_water_out, batch_size=64, summary_file=None):
|
||||
out_water_width, out_water_height, out_water_channels = shape_water_out
|
||||
out_water_width, out_water_height = shape_water_out
|
||||
|
||||
|
||||
layer_input = tf.keras.layers.Input(
|
||||
|
|
|
@ -15,7 +15,7 @@ from .shuffle import shuffle
|
|||
|
||||
# TO PARSE:
|
||||
def parse_item(metadata, shape_water_desired, water_threshold=0.1):
|
||||
water_width_source, water_height_source = metadata["waterdepth"]
|
||||
water_width_source, water_height_source, _water_channels_source = metadata["waterdepth"]
|
||||
water_width_target, water_height_target = shape_water_desired
|
||||
water_offset_x = math.ceil((water_width_source - water_width_target) / 2)
|
||||
water_offset_y = math.ceil((water_height_source - water_height_target) / 2)
|
||||
|
|
Loading…
Reference in a new issue