Error is regarding channel size not height and width and also, there is a resize operation as you can see height and width in both entries are the same where = 128



 Prasad:

transforms.Resize((128,128))