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

Batch size affects the behaviour of Masked Average Pooling #1

Open
kaixin96 opened this issue Dec 11, 2018 · 7 comments
Open

Batch size affects the behaviour of Masked Average Pooling #1

kaixin96 opened this issue Dec 11, 2018 · 7 comments

Comments

@kaixin96
Copy link

In onemodel_sg-one.py line 37, the behaviour of torch.sum(pos_mask) will be different if the batch size is not 1.

It is better to write it batchsize-agnostic.

@kailigo
Copy link

kailigo commented Dec 22, 2018

@kaixin96 , have you made the code executed and reproduced the reported results? Thanks.

@kaixin96
Copy link
Author

@kailigo I managed to run the code but didn't reach the reported performance (for the first split, only 0.35). Maybe I still miss something. The proposed architecture is not very complex if you examine carefully the model code. But my own re-implentation didn't achieve the reported performance either.

@kailigo
Copy link

kailigo commented Dec 23, 2018

@kaixin96 , I managed to run the code as well. Same as you, I can only reach 0.35 for split 1. For other splits, the gaps between the reproducing ones and the reported ones are even larger. We both definitively missed something. It would be much appreciated if the author (@xiaomengyc ) can provide some guidance for reproducing the results.

I will read the code in the following days, and will post my results here if I get some improvements. Could you share your experience here, if you reach or approach the reported results. Thanks.

@kaixin96
Copy link
Author

@kailigo Thanks. It will be helpful.

I am afraid I don't have time looking into this right now but I will try it again later and share my experience if there is any improvement.

@shenggedeqiang
Copy link

I used the test_frame_all.py to test,and I got mIOU of 0.46.Does this file mean the one-shot result?

@DeepTrial
Copy link

@shenggedeqiang i think that is the result. Can i ask how you train the model, i run the code for group 0 but got about 0.20 for mIOU?

@shenggedeqiang
Copy link

@shenggedeqiang i think that is the result. Can i ask how you train the model, i run the code for group 0 but got about 0.20 for mIOU?
In the folder of scripts,you need to run the four .sh files(if you only have one gpu,you need to change the cpu ID to 0),and then run test_frame_all.py

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

4 participants