Solved by sdv4 in post #3 
              
              
                This is saying that your input image has 128 channels, when it likely has 3 (if RGB, YCbCr, etc.) or 1 (grey scale ). Then if your batch size is 32, your input size should be (32, 3, 128, 128) for RGB images.