Split Cub200 into more the five experiences. #1581
Unanswered
evertonaleixo
asked this question in
Q&A
Replies: 1 comment
-
Did you resolve this issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🐛 Describe the bug
I am trying to split cub200 benchmark into 10 experiences, however, it is giving the following error:
'''
File ~\playground\avalanche\avalanche\benchmarks\scenarios\new_classes\nc_scenario.py:277, in NCScenario.init(self, train_dataset, test_dataset, n_experiences, task_labels, shuffle, seed, fixed_class_order, per_experience_classes, class_ids_from_zero_from_first_exp, class_ids_from_zero_in_each_exp, reproducibility_data)
270 remaining_exps = n_experiences - len(per_experience_classes)
271 if (
272 remaining_exps > 0
273 and (self.n_classes - sum(per_experience_classes.values()))
274 % remaining_exps
275 > 0
276 ):
--> 277 raise ValueError(
278 "Invalid number of experiences: remaining "
279 "classes cannot be divided by n_experiences"
280 )
282 # default_per_exp_classes is the default amount of classes
283 # for the remaining experiences
284 if remaining_exps > 0:
ValueError: Invalid number of experiences: remaining classes cannot be divided by n_experiences
'''
🐜 To Reproduce
A minimal working example to reproduce the issue. The code should be executable without modifications.
'''
split_ds = SplitCUB200(
n_experiences=10,
seed=1234,
)
'''
🐝 Expected behavior
A clear and concise description of what you expected to happen.
Create 10 experiences,
🐞 Screenshots
If applicable, add screenshots to help explain your problem.
🦋 Additional context
Add any other context about the problem here like your python setup.
Beta Was this translation helpful? Give feedback.
All reactions