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

This is what I do to make the shapes between input data and prediction equal. #280

Open
XiangyuWu opened this issue Aug 20, 2019 · 0 comments

Comments

@XiangyuWu
Copy link

XiangyuWu commented Aug 20, 2019

Since many users had suffered from the unequal shapes between input data and prediction, I tried to write down my solution here. Hope it helpful.

  1. Make sure the data shape is power-of-two, 256, 512, etc.
  2. Comment the lines "size -= 2 * 2 * (filter_size // 2) # valid conv" in unet.py.
  3. Replace all "VALID" to "SAME" in "layers.py".

They work well for me to segment a 512*512 image.

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