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

[Feature] Weight item loss based on image metadata? #9905

Open
InakiRaba91 opened this issue Mar 8, 2023 · 1 comment
Open

[Feature] Weight item loss based on image metadata? #9905

InakiRaba91 opened this issue Mar 8, 2023 · 1 comment
Assignees

Comments

@InakiRaba91
Copy link

What's the feature?

I would like to weight the contribution of each item to the overall loss based on some metadata. For instance, I have a few different types of images (i.e. sunny, cloudy, snowy), one of which is particularly challenging (snowy). I'd like the training to focus more on those instances by increasing their corresponding weight.

Any other context?

I know I could resort to a sampler to sample more often those types of images, but it's not what I want. I'd like to sample all items with equal frequency, just modify their contribution to the loss depending on their type.

@InakiRaba91
Copy link
Author

I've submitted a draft PR with my suggestion on how to potentially deal with this. Let me know your thought, more than happy to add the tests if you believe this approach is on the right track.

open-mmlab/mmsegmentation#2738

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