train_mono_predict: convert to correct format

This commit is contained in:
Starbeamrainbowlabs 2022-11-24 17:56:07 +00:00
parent 105dc5bc56
commit 54a841efe9
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -111,8 +111,9 @@ def do_png(args, ai, dataset, model_params):
for water_predict in water_predict_batch:
# [ width, height, softmax_probabilities ] → [ batch, width, height ]
water_predict = tf.math.argmax(water_predict, axis=-1)
# [ width, height ]
# [ width, height, bins ]
water_actual = tf.squeeze(water[i_batch])
water_actual = tf.math.argmax(water_actual, axis=-1)
segmentation_plot(
water_actual, water_predict,