U-Net (Ronneberger et al., 2015) copies high-resolution encoder features to the decoder through skip connections. Unpadded convolutions shrink the maps, so the copied features are center-cropped to match.
Implement center_crop(x, h, w), returning the central region of a feature map.
Compute the top and left offsets from the size difference, then slice.
No results yet
Run your code to check it against the examples, or submit to run every test.