Comments (7)
That's more or less how I usually implement my dataloader for CL, so I guess it should be fine. I thought about downloading dataset in our code or inheriting the feature from PyTorch datasets when possible, but in the end I believe reimplementing the download component would give us more robustness against future updates.
from avalanche.
I guess we should leave this issue opened at least until Avalance 0.1 is ready. Since we are still adding new datasets, I don't think it would be safe to start modifying the existing ones.
from avalanche.
We can start moving all the benchmarks following the API proposed by @lrzpellegrini in the PR: #64
See the mnist example and especially the train_using_dataset function.
from avalanche.
Warning: this may break the preprocessing steps of most of the strategies already implemented!
from avalanche.
Ok, I will keep it in a separate branch and avoiding PR in the immediate future. We can separately test it before merging into master.
from avalanche.
I've thought a bit about this. I think that to have a general API we need to make all the benchmarks subclass of the Pytorch Dataset class, so that we can use the Pytorch data_loader class as the iterator.
Then, for every task/batch this iterator should return another Pytorch Dataset class so that we can use a data loader to iterate over it as well. What do you think?
from avalanche.
@lrzpellegrini any news on this?
from avalanche.
Related Issues (20)
- Checkpoint error in AGEM
- tutorial missing docs HOT 2
- Cannot catch last subexp (Affects Online settings with access to task boundaries) HOT 5
- Issue with cpu_usage metric HOT 2
- ConcatDatasets HOT 1
- forgetting_metrics is 0 with filelist_benchmark
- I can use the CPU version of the torch normally, but after installing the gpu version of the torch, I get this error: TypeError: BaseSGDTemplate.__init__() missing 2 required positional arguments: 'model' and 'optimizer'
- Avalanche unable to use cuda device. HOT 3
- make_train_dataloader discards custom collate function passed as kwarg HOT 4
- Split Cub200 into more the five experiences.
- Question about Multi-Class Classification Continual Learning in Avalanche
- Help to handle with miniImageNet HOT 1
- support python 3.11 HOT 1
- Trouble with ni_benchmark
- Trouble with `dataset_benchmark` and `tensors_benchmark`. Continual Learning plugins do not work.
- How to use Packnet model
- Multi task fails on existing module wrappers HOT 2
- Code from Avalanche Tutorial doesn't work HOT 1
- Unnecessarily strict requirement for batch size in MASPlugin HOT 1
- Checkpointing issues in 0.4.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avalanche.