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

No picture left when stride_size == patch_size #15

Open
dan1elR opened this issue Mar 8, 2021 · 2 comments
Open

No picture left when stride_size == patch_size #15

dan1elR opened this issue Mar 8, 2021 · 2 comments

Comments

@dan1elR
Copy link

dan1elR commented Mar 8, 2021

In the script make_output_unet no picture is left after cropping away the padding if stride_size == patch_size.
Additionally, as padding with this setting was only applied at the outside, the inner pictures get cropped though nothing was padded here.

output=output[:,:,stride_size//2:-stride_size//2,stride_size//2:-stride_size//2,:]

@dan1elR
Copy link
Author

dan1elR commented Mar 8, 2021

Does it seam right, to change the order and at first concatenate the tiles and afterwards removing half stride (dimensions need adjustment)?

@choosehappy
Copy link
Owner

choosehappy commented Mar 9, 2021 via email

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