Skip to content

Is it possible to have incremental task labels from 'dataset_benchmark'? #801

Answered by vlomonaco
thipokKub asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @thipokKub! Thanks for taking the time to report your issue :)
This seems more of a usability question rather then a bug, so I'm moving this in the discussions section.

As for your question, "avalanche_dataset" is meant to be used with custom Datasets definitions. In the official tutorial this example is reported:

# Alternatively, task labels can also be a list (or tensor)
# containing the task label of each pattern

train_MNIST_task0 = AvalancheDataset(train_cifar10, task_labels=0)
test_MNIST_task0 = AvalancheDataset(test_cifar10, task_labels=0)

train_cifar10_task1 = AvalancheDataset(train_cifar10, task_labels=1)
test_cifar10_task1 = AvalancheDataset(test_cifar10, task_labels=1)

sce…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Mattdl
Comment options

@AndreaCossu
Comment options

@vlomonaco
Comment options

@MagicHealer
Comment options

@vlomonaco
Comment options

Answer selected by vlomonaco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #800 on November 03, 2021 20:03.