How to correctly resize input images in a CNN?
Two solutions:

Crop images to a fixed size
Pad images to a fixed size with 0s.

Keep in mind if you are doing segmentation, gt masks have to be cropped/padded too.