Trouble with ni_benchmark #1578
Unanswered
Vincent710129
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🐛 Describe the bug
When using lists of self-defined training and test Pytorch dataset for domain-incremental learning with
ni_benchmark
, target labels are altered.I prepare training and test data from 2 domains both with the same target labels among [0, 1, 2] and wrap them with the
ni_benchmark
to perform domain-incremental learning. However, during training, it seems like the target labels for domain 2 are altered into [4, 5, 6] and the compiler gives an error regarding target label 4/5/6 is out of bounds for the chosen criterion. I want to use the same 3 output neurons to classify the same target labels [0, 1, 2] from 2 different domains, but I'm having trouble doing this withni_benchmark
.🐜 To Reproduce
🐝 Expected behavior
I expect
ni_benchmark
to generate a domain-incremental stream from the two Pytorch datasets in the lists, namely [train_1, train_2] and [test_1, test_2], with the same target labels [0, 1, 2].🐞 Screenshots
If you print
self.mb_output
andself.mb_y
in the functioncriterion
in/avalanche/training/templates/problem_type/supervised_problem.py
. You can see the true target labelsself.mb_y
during training are altered as below:Beta Was this translation helpful? Give feedback.
All reactions