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

non-continuous categories #25

Open
SONGLEI-arch opened this issue Dec 29, 2023 · 1 comment
Open

non-continuous categories #25

SONGLEI-arch opened this issue Dec 29, 2023 · 1 comment

Comments

@SONGLEI-arch
Copy link

Hello!

Your code removes categories with the sample size less than 2, resulting in non-continuous integers in the categories. However, it seems that the categories were not reordered during the subsequent task partitioning. May I ask if there will be any errors on this side?

Thank you!

@QueuQ
Copy link
Owner

QueuQ commented Aug 10, 2024

Thanks for the question. It shouldn't incur any error. Whatever the order of the classes is, they are added sequentially during training regardless of their original id in the original datasets.

cls = [list(range(i, i + args.n_cls_per_task)) for i in range(0, args.n_cls-1, args.n_cls_per_task)]

In the line above, the task sequences can also be replaced with any arbitrary order of class pairs, e.g. [3,7],[2,6],..., instead of [1,2],[3,4].

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