Skip to content

Uneven batch sizes for MultiDatasetDataLoader #1445

Answered by lrzpellegrini
h-0-0 asked this question in Q&A
Discussion options

You must be logged in to vote

I think I solved it. Change buffer_data to this:

from avalanche.benchmarks.utils.classification_dataset import make_classification_dataset

buffer_data = make_classification_dataset(
    CIFAR10(
        "data", 
        download=True, 
        train=True,
        transform=ToTensor()
    )
)

Also, I noticed that in after_training_exp you are calling self.storage_policy.update(strategy, **kwargs), but the update method is not implemented in FixedBuffer. Maybe you wanted to use update_from_dataset.

Let me know if this solves the issue!

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@h-0-0
Comment options

Comment options

You must be logged in to vote
2 replies
@h-0-0
Comment options

@lrzpellegrini
Comment options

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