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

How to set the weight of each loss item #3

Open
FFFox-abc opened this issue Jun 28, 2023 · 1 comment
Open

How to set the weight of each loss item #3

FFFox-abc opened this issue Jun 28, 2023 · 1 comment

Comments

@FFFox-abc
Copy link

I noticed that the loss is composed of 5 part. In the paper said: " We set loss weights as λt = 0.01, λs = 10, λdist = 0.001, λgen = 0.005, and λdis = 0.005." is there some tricks to set? or just set accroding experience?

@tiangexiang
Copy link
Owner

Hey! Thanks for your interest in our work! Setting the loss weights really depends on the absolute value of the weighted losses. In general, different loss functions may give losses at very different scales, and we hope to scale them to an appropriate common scale. We also observed in our experiments (e.g. ablations) that some parts of the network may need to be updated more than others, so we tune the weights accordingly.

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