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 for segmentation #3

Closed
zaccharieramzi opened this issue Dec 10, 2020 · 2 comments
Closed

Downsampling for segmentation #3

zaccharieramzi opened this issue Dec 10, 2020 · 2 comments

Comments

@zaccharieramzi
Copy link

Hi @jerrybai1995 ,

I am coming here after seeing your oral at NeurIPS and talking with you at the poster session.
I was looking at your model architecture for segmentation, and noticed that you downsample the full resolution image 4 times before feeding it into the implicit layer.
Would it be to time-consuming to train on the full-resolution image? Did you try anyway?

@jerrybai1995
Copy link
Member

Hi @zaccharieramzi ,

Thanks for stopping by at our poster! These two downsamplings were added just as initial processing; for smaller images we don't downsample them at all. For example, in 32x32 CIFAR experiments, we passed in the images at their original resolution without such downsampling: https://github.com/locuslab/mdeq/blob/master/experiments/cifar/cls_mdeq_LARGE.yaml#L17

For extremely large images (e.g., 2000x1000), we do perform these two strided-convolutions for efficiency purposes (as is done by almost all papers that use Cityscapes segmentation :P). To answer your question, I did try to train with full-resolution, and I can get slightly better results, but the model will be incredibly slow because:

  1. We need to process larger images, so each f(x;z) evaluation will be a lot more expensive; and
  2. It also takes more iterations to converge to the fixed point because it's of very high dimensionality.

Hope this clarifies things a bit for you!

@zaccharieramzi
Copy link
Author

It does thank you very much! (I had indeed imagined that most people were doing 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