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

How to deal with images with different input size? #11

Closed
manmanCover opened this issue Jan 24, 2019 · 6 comments
Closed

How to deal with images with different input size? #11

manmanCover opened this issue Jan 24, 2019 · 6 comments

Comments

@manmanCover
Copy link

It seems like collection and distribution operations require the training and testing images have the same input feature size.
So How to deal with images with different input size?

@EthanZhangYi
Copy link
Collaborator

The PSA module is designed to produce global information over the whole image. For the images with different input size, we do inference by sliding window mechanism.

@manmanCover
Copy link
Author

manmanCover commented Jan 27, 2019

@EthanZhangYi Thanks for your reply. You mean that the current implementation can use sliding window?

@EthanZhangYi
Copy link
Collaborator

EthanZhangYi commented Jan 28, 2019

@manmanCover
For training, we crop images randomly.
For evaluation, we test images by sliding-window.

Later we will release our pytorch version. It is nearly ready.

@manmanCover
Copy link
Author

@EthanZhangYi Thank you!

@manmanCover
Copy link
Author

manmanCover commented Feb 8, 2019

@EthanZhangYi By the way, what's the size of the sliding window? I found that this detail hasn't been mentioned in the paper?
And how do you implement the sliding operation? Crop images into patches and then join them together after cnn?

@EthanZhangYi
Copy link
Collaborator

You can find the implementation of sliding-window processing here. https://github.com/hszhao/PSANet/blob/master/evaluation/scale_process.m
stride = 2/3
We crop images into patches and then join them together after CNN.

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