You should preprocess images in the same way  (except for data enhancement operations) , such as resize and normalize. Not only the dimensions of the input data will affect the results, but also color channels’ order (such as RGB and BGR,  but this may not affect for stereo depth estimation).