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

Confusion about input size and output size and center crop? #281

Open
WNZhao1988 opened this issue May 17, 2024 · 1 comment
Open

Confusion about input size and output size and center crop? #281

WNZhao1988 opened this issue May 17, 2024 · 1 comment

Comments

@WNZhao1988
Copy link

Based on your code, it seems that you crop the center from a 540x540 image to get the 270x270 image as input, and for annotation, you crop the center from a 540x540 annotation to get the 80x80 annotation as output/ground truth. I wonder why for input you only use the center part instead od the original size of the image and also for annotation why you don't keep it consistent with the input size (e.g. 270x270 or 540x540), instead, you use a smaller outputsize?

Could you simply explain this to me?

Thank you!

@simongraham
Copy link
Collaborator

We start with a patch double the size of the input.

  1. 540 x 540 patch
  2. augmentation
  3. central crop: input size = 270x270
  4. output size of network = 80x80

We use an initial image double the size of the input before augmentation to reduce border effects during augmentation (for example, rotation ~ 45 degrees)

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

2 participants