image pre-processing for image semantic segmentation for urban trafic

What kind of pree processing need to be perform for Scene segmentation? I did just loading image and train models with data, but there gives some value errors like,expected conv2d_transpose_6 to have shape (258, 258, 19) but got array with shape (258, 258, 3)

so what should i do for this?