the long night continues

This commit is contained in:
Starbeamrainbowlabs 2022-09-28 18:14:09 +01:00
parent dc159ecfdb
commit b5e08f92fe
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 2 additions and 2 deletions

View file

@ -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(

View file

@ -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)