Cannot create a dataset using the code in notebooks/from-zero-to-hero-tutorial/03_benchmarks.ipynb and the classification dataset cannot switch between train and eval transforms #1648
Labels
bug
Something isn't working
These are two issues related to one another.
🐛 Describe the bug
Bug 1:
as_classification_dataset
is given 2 arguments in the notebook, but according to the function definition, only one should be provided.transform_groups
is not a valid input.Bug 2: even if we give both
train
andeval
transform_groups
to an Avalanche dataset, we can't switch between train/eval transform in that dataset.🐜 To Reproduce
Bug 1
Bug 2
🐝 Expected behavior
For Bug 1
I tried modifying the code in the following ways
and
and
make_classification_dataset
runs, but the functionality of switching between transform groups doesn't work (Bug 2)as_classification_dataset
followed by.replace_current_transform_group(transform_groups)
doesn't properly wraps the dataset and when enumeratingtrain_MNIST
the examples arePIL.Images
.AvalancheDataset
followed byas_classification_dataset
gives aDeprecationWarning
and similarly to Approach 1, the functionality of switching between transform groups doesn't work (Bug 2).
It seems that Approach 1 may be the correct technique to create a classification AvalancheDataset, but the transformations are not stored in the groups.
For Bug 2
If we could switch into
eval
transform group, we expect🐞 Screenshots
![Screenshot 2024-05-29 at 14 36 31](https://private-user-images.githubusercontent.com/15186507/334821387-685fa108-f9c1-4ffa-859c-a16f45e1cdd3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDcyMDMsIm5iZiI6MTczOTMwNjkwMywicGF0aCI6Ii8xNTE4NjUwNy8zMzQ4MjEzODctNjg1ZmExMDgtZjljMS00ZmZhLTg1OWMtYTE2ZjQ1ZTFjZGQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIwNDgyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU5NDY5MzliNzQ5ZjMwZjljZTRmYWVlNDdjMzRiNDBmODRhZGY1YzFlMTg3MGFiODQ4NDUzZjQ0ZWE0NTY0ODAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ZJxszxezOX_KwiEouBvHeiiQQ-ekVsFw0bJNYhNSVek)
Bug 1
🦋 Additional context
I'm using
avalanche-lib 0.4.0
andtorch 1.13.1
The text was updated successfully, but these errors were encountered: