Is it necessary to train using resolution 1024x1024? For example, my image is a rectangle with a rat

Is it necessary to train using resolution 1024x1024? For example, my image is a rectangle with a ratio of 768x1024, is it optimal for training or do I have to crop it to a square?
Was this page helpful?