ai: channels_first → channels_last

This commit is contained in:
Starbeamrainbowlabs 2022-09-01 17:06:18 +01:00
parent f1d7973f22
commit c2fcb3b954
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -11,7 +11,7 @@ def model_rainfallwater_contrastive(shape_rainfall, shape_water, batch_size=64,
logger.info(shape_water)
# Shapes come from what rainfallwrangler sees them as, but we add an extra dimension when reading the .tfrecord file
rainfall_width, rainfall_height, rainfall_channels = shape_rainfall # shape = [width, height, channels]
rainfall_channels, rainfall_width, rainfall_height = shape_rainfall # shape = [channels, width, height]
water_width, water_height = shape_water # shape = [width, height]
water_channels = 1 # added in dataset → make_dataset → parse_item