File size: 193 Bytes
5fa1a76
 
 
 
 
1
2
3
4
5
image.size[::-1],
 )
pred_seg = tf.math.argmax(upsampled_logits, axis=-1)[0]

To visualize the results, load the dataset color palette as ade_palette() that maps each class to their RGB values.