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

Downsampling segmentation labels vs Upsampling predictions #209

Open
aicaffeinelife opened this issue Nov 24, 2019 · 2 comments
Open

Downsampling segmentation labels vs Upsampling predictions #209

aicaffeinelife opened this issue Nov 24, 2019 · 2 comments

Comments

@aicaffeinelife
Copy link

Hi guys,

Thanks for having this awesome repo. I'm writing some code for semantic segmentation and noted that you are downsampling labels instead of upsampling predictions. This issue is not a code issue, but rather an open ended question:

  1. Downsampling segmentation labels may lead to loss of some spatially correlated pixels, which the NLLLoss may not penalize, so is downsampling justified simply because it leads to less memory consumption?

  2. How would we go about implementing auxiliary losses like SELoss1 or patchwise pixel loss if we downsample segmentation labels?

@hangzhaomit
Copy link
Collaborator

hangzhaomit commented Dec 30, 2019

This is a good question. Your points in 1. are exactly the trade-offs in this problem.
A recent paper tries to solve this problem by sampling more patches around edges, which is effective.
https://arxiv.org/abs/1912.08193

@aicaffeinelife
Copy link
Author

Thanks for bringing this very interesting paper to my attention. I've not read the paper in depth, but from what I can understand, sampling points drawn from a uniform distribution can lead to better semantic boundaries, without having to upsample the predictions. I believe that this opens up a very new space for exploration in highly efficient semantic segmentation architectures.

What are your thoughts on this?

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