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

question #5

Open
xubangwu opened this issue Aug 24, 2022 · 1 comment
Open

question #5

xubangwu opened this issue Aug 24, 2022 · 1 comment

Comments

@xubangwu
Copy link

Hello, I have a problem about the CSS module. In the 260 line of hfan_vos.py, the shape of probs is (batch_size,num_classes,h*w), why the softmax function normalizes the third dimension rather than the second dimension?

@CODE4UVOS
Copy link
Contributor

Thanks for your attention.

Please excuse me for not responding sooner.

probs = F.softmax(self.scale * probs, dim=2) is spatial softmax, designed to normalize the foreground/background region.

You can refer to Equation 1 of the paper, which may help you.

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