Replies: 2 comments
-
I have tried a similar example, using CIFAR10 instead of a custom dataset, and I did not have any problem. I don't think the problem comes from the nc_benchmark function. In this case, the targets of experience one are [10, 11]. Could you try to print the classes_in_this_experience attribute of the first experience and give the output ?
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your suggestions.
But when I tried to test the model with this script
and here I got I also have followed your advice and added (in my original code where I actually had the main problem) the respective code to print the classes_in_this_experience of the first experience in the training stream of my benchmark, as shown below:
This prints [1002]. To give a bit more context, I am using ResNet-101, and there are 1000 classes, indexed from 0 to 999. Now, I’ve added 6 new classes. So right now I'm a little bit confused and don't know which direction to move. |
Beta Was this translation helpful? Give feedback.
-
I'm encountering an issue with class indices being overwritten when performing continual learning using Avalanche 0.4.0a.
Environment:
Avalanche Version: 0.4.0a
OS: Ubuntu 20.04
Python Environment: default (not using Conda)
I'm employing Avalanche for continual learning with the aim that when the model trains on new data, it retains knowledge of the old data and successfully integrates the new information. Despite the dataset size, this indexing issue persists. I've been using a small dataset of approximately 10-15 photos for simplicity in troubleshooting. Specifically, after adding 3 new classes to a model initially trained on 5 classes (indexed 0-4), I expected predictions to be indexed as 0,1,2,3,4,5,6,7. However, I received predictions as 0,1,2,3,4,0,1,2.
Here is the code that I have:
I'm trying to understand how to preserve accurate class indexing throughout retraining and evaluation, ideally without changing the core architecture and using Avalanche.
Please suggest how to solve this and make indexation right.
Beta Was this translation helpful? Give feedback.
All reactions