Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is Center Crop used for skip connections instead of Padding in U-Net? #281

Open
dyedd opened this issue Jan 5, 2025 · 0 comments
Open

Comments

@dyedd
Copy link

dyedd commented Jan 5, 2025

Hello,

I have been studying the U-Net implementation in this repository and noticed that the skip connections between the encoder and decoder are implemented using Center Crop to match feature map sizes, instead of Padding.

I was wondering if you could clarify the reasoning behind this design choice. Specifically:

  1. Why is Center Crop used rather than padding the smaller feature map to match the larger one?
  2. Are there any specific advantages in this case (e.g., in terms of model performance or efficiency) to cropping the larger feature map instead of padding the smaller one?
  3. Have you noticed any particular challenges or benefits when using Center Crop in comparison to Padding for skip connections, especially in tasks such as segmentation or object detection?

I would really appreciate your insights on this design decision.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant