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

Multi-SupConLoss #667

Open
wants to merge 12 commits into
base: dev
Choose a base branch
from
Open

Multi-SupConLoss #667

wants to merge 12 commits into from

Conversation

QibinLiang
Copy link

I implemented the Multi-SupConLoss as mentioned in issue #658.

However, this implementation rewrote a lot of functions because many functions conflicted with the multi-label task such as check_shapes and get_matches_and_diffs.

Moreover, it seems that the cross-batch memory does not support the Multi-SupConLoss. I found that to support the Multi-SupConLoss I need to modify a bunch of code which will potentially affect other well-developed functions.

So, I tried to add the function I needed to multilabel_supcon_loss.py and didn't make any changes to other well-developed functions.

I also tested the use-case and compared the result with repo. The result looks good except the cases ran on Float16.

@QibinLiang QibinLiang marked this pull request as ready for review October 11, 2023 07:18
@KevinMusgrave KevinMusgrave changed the base branch from master to dev October 18, 2023 04:05
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

Successfully merging this pull request may close these issues.

2 participants