887574002:

My thought is that the spatial dimension of images should be of power 2 when we are working with Unet. Is that correct?


It depends on the implementation and how flexible the model architecture is to arbitrary input shapes.
While powers of two are often easier to handle, you could certainly write a more “robust” model accepting more input shapes e.g. by padding/slicing the activations if needed.