Giter VIP home page Giter VIP logo

Comments (7)

AndreaCossu avatar AndreaCossu commented on July 28, 2024 1

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.

AndreaCossu avatar AndreaCossu commented on July 28, 2024 1

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.

vlomonaco avatar vlomonaco commented on July 28, 2024 1

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.

vlomonaco avatar vlomonaco commented on July 28, 2024

Warning: this may break the preprocessing steps of most of the strategies already implemented!

from avalanche.

AndreaCossu avatar AndreaCossu commented on July 28, 2024

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.

vlomonaco avatar vlomonaco commented on July 28, 2024

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.

vlomonaco avatar vlomonaco commented on July 28, 2024

@lrzpellegrini any news on this?

from avalanche.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.