Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

About resizing the mask #35

Open
WanderingMeteor opened this issue Sep 3, 2019 · 2 comments
Open

About resizing the mask #35

WanderingMeteor opened this issue Sep 3, 2019 · 2 comments

Comments

@WanderingMeteor
Copy link

WanderingMeteor commented Sep 3, 2019

Thanks for your sharing!@naoto0804
I found that you generate 512 * 512 masks and resize them to 256 * 256 using transforms.Resize(size=256).
However, the default downsampling method is the linear interpolation, which causes the value of the resized mask to be not only 0 and 1, but also other values in [0,1]. The resized mask is not exactly the mask defined in the original paper.
Therefore, when I use 256 * 256 mask ( without resizing, i.e. its value only contains 0 and 1 ) for testing the 1000000.pth pre-trained model, the result is not good.
To avoid this, maybe resizing the mask with the nearest neighbor downsampling method when training the network works.

@naoto0804
Copy link
Owner

Wow you are right, thank you so much for the suggestion!

@xiximelon
Copy link

Does this means the 1000000.pth is not suitable for testing any dataset?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants