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

About the loss function in 'Semantic Grouping Layer'. #8

Open
Kurumi233 opened this issue Dec 28, 2019 · 2 comments
Open

About the loss function in 'Semantic Grouping Layer'. #8

Kurumi233 opened this issue Dec 28, 2019 · 2 comments

Comments

@Kurumi233
Copy link

I don't understand the code in 'dbt.py', line 216 to 221.
How to get the divisor of 128 and 512? plz

@wangyirui
Copy link

I am also confused about these numbers. Could you further explain it? Thanks! @Jianlong-Fu

@Heliang-Zheng
Copy link
Member

@Kurumi233 @wangyirui
128 is the batch_size, and I have replaced this number to self.batch_size. Such an item is for normalizing.
512 is the channel number of the last stage. Since in the beginning, I tuned the loss weight for the last stage, I added channels/512 for normalizing the scale of the loss.

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

3 participants