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

Varying the number of classes among the tasks #32

Open
andreadaou opened this issue Mar 7, 2023 · 2 comments
Open

Varying the number of classes among the tasks #32

andreadaou opened this issue Mar 7, 2023 · 2 comments

Comments

@andreadaou
Copy link

Hello !

In Class-incremental learning: survey and performance evaluation on image classification, large domain shift is studied. In this section, the number of classes varies among the tasks (i.e., starting with 102 classes then adding 67 classes then 200, etc.).

Is it possible to specify the number of classes for each task? Because in the code, I only found the possibility of specifying the --nc-first-task (number of classes of the first task) and --num-tasks (total number of tasks).

Thank you in advance !!

@mmasana
Copy link
Owner

mmasana commented Mar 13, 2023

Hi Andrea,

the way that we handled that setting is by using multiple dataset entries. You can just have different entries in the dataset_config.py, each with a different number of classes, and then you pass all of those dataset key names after the argument --datasets.

This can also be used to have a varying number of classes for the same dataset by creating multiple entries dataset-name-task1, dataset-name-task2, ... , dataset-name-taskN which each has all the same specifications except for a different number of classes, specified with the 'class_order': key followed by the list of classes specific on that task.

Hope that helps!

@andreadaou
Copy link
Author

Okay, thank you!!

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