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

Effect of resizing image & mask without keeping width-height ratio in the data augmentation #40

Open
rose-jinyang opened this issue Mar 16, 2022 · 3 comments

Comments

@rose-jinyang
Copy link

Hello
How are you?
Thanks for contribution to this project.
I'm NOT sure if this RMI loss would work well in case that we resize the image & mask to input size(NxN in pixels) without keeping width-height ratio in the data augmentation step.
I am working on image segmentation project.
There are many images & masks with different sizes in my dataset.
The data by dataloader are resized to input size(ex: 256x256) and feed into the model.
So the original width-height ratio of image & mask are NOT kept.
Even in such case, does this RMI loss work well?

@rose-jinyang
Copy link
Author

Hello
Could u reply to the above question?
Thanks

@mzhaoshuai
Copy link
Member

Well, I think different w-h ratios will have no effect on RMI.
RMI only cares about the relationship of neighbors, and resizing does not change it.

Sorry for this late reply.
This repo is old and I am busy with other projects.

@rose-jinyang
Copy link
Author

Thanks

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