avalanche
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.6%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: naort-dev
- License: mit
- Language: Python
- Default Branch: master
- Size: 14 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Avalanche is an end-to-end Continual Learning library based on Pytorch, born within ContinualAI with the unique goal of providing a shared and collaborative open-source (MIT licensed) codebase for fast prototyping, training and reproducible evaluation of continual learning algorithms.
:warning: Looking for continual learning baselines? In the CL-Baseline sibling project based on Avalanche we reproduce seminal papers results you can directly use in your experiments!
Avalanche can help Continual Learning researchers in several ways:
- Write less code, prototype faster & reduce errors
- Improve reproducibility, modularity and reusability
- Increase code efficiency, scalability & portability
- Augment impact and usability of your research products
The library is organized into four main modules:
- Benchmarks: This module maintains a uniform API for data handling: mostly generating a stream of data from one or more datasets. It contains all the major CL benchmarks (similar to what has been done for torchvision).
- Training: This module provides all the necessary utilities concerning model training. This includes simple and efficient ways of implement new continual learning strategies as well as a set of pre-implemented CL baselines and state-of-the-art algorithms you will be able to use for comparison!
- Evaluation: This module provides all the utilities and metrics that can help evaluate a CL algorithm with respect to all the factors we believe to be important for a continually learning system. It also includes advanced logging and plotting features, including native Tensorboard support.
- Models: This module provides utilities to implement model expansion and task-aware models, along with a set of pre-trained models and popular architectures that can be used for your continual learning experiment (similar to what has been done in torchvision.models).
- Logging: It includes advanced logging and plotting features, including native stdout, file and TensorBoard support (How cool it is to have a complete, interactive dashboard, tracking your experiment metrics in real-time with a single line of code?)
Avalanche the first experiment of an End-to-end Library for reproducible continual learning research & development where you can find benchmarks, algorithms, evaluation metrics and much more, in the same place.
Let's make it together :peopleholdinghands: a wonderful ride! :balloon:
Check out below how you can start using Avalanche! :point_down:
Quick Example
```python import torch from torch.nn import CrossEntropyLoss from torch.optim import SGD
from avalanche.benchmarks.classic import PermutedMNIST from avalanche.models import SimpleMLP from avalanche.training import Naive
Config
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
model
model = SimpleMLP(num_classes=10)
CL Benchmark Creation
permmnist = PermutedMNIST(nexperiences=3) trainstream = permmnist.trainstream teststream = permmnist.teststream
Prepare for training & testing
optimizer = SGD(model.parameters(), lr=0.001, momentum=0.9) criterion = CrossEntropyLoss()
Continual learning strategy
clstrategy = Naive( model, optimizer, criterion, trainmbsize=32, trainepochs=2, evalmbsize=32, device=device)
train and test loop over the stream of experiences
results = [] for trainexp in trainstream: clstrategy.train(trainexp) results.append(clstrategy.eval(teststream)) ```
Current Release
Avalanche is a framework in constant development. Thanks to the support of the ContinualAI community and its active members we are quickly extending its features and improve its usability based on the demands of our research community!
A the moment, Avalanche is in Beta. We support several Benchmarks, Strategies and Metrics, that make it, we believe, the best tool out there for your continual learning research! 💪
You can install Avalanche by running pip install avalanche-lib.
This will install the core Avalanche package. You can install Avalanche with extra packages to enable more functionalities.
Look here for a more complete guide on the different ways available to install Avalanche.
Getting Started
We know that learning a new tool may be tough at first. This is why we made Avalanche as easy as possible to learn with a set of resources that will help you along the way. For example, you may start with our 5-minutes guide that will let you acquire the basics about Avalanche and how you can use it in your research project:
We have also prepared for you a large set of examples & snippets you can plug-in directly into your code and play with:
Having completed these two sections, you will already feel with superpowers ⚡, this is why we have also created an in-depth tutorial that will cover all the aspects of Avalanche in detail and make you a true Continual Learner! :woman_student:
Cite Avalanche
If you used Avalanche in your research project, please remember to cite our reference paper published at the CLVision @ CVPR2021 workshop: "Avalanche: an End-to-End Library for Continual Learning". This will help us make Avalanche better known in the machine learning community, ultimately making a better tool for everyone:
@InProceedings{lomonaco2021avalanche,
title={Avalanche: an End-to-End Library for Continual Learning},
author={Vincenzo Lomonaco and Lorenzo Pellegrini and Andrea Cossu and Antonio Carta and Gabriele Graffieti and Tyler L. Hayes and Matthias De Lange and Marc Masana and Jary Pomponi and Gido van de Ven and Martin Mundt and Qi She and Keiland Cooper and Jeremy Forest and Eden Belouadah and Simone Calderara and German I. Parisi and Fabio Cuzzolin and Andreas Tolias and Simone Scardapane and Luca Antiga and Subutai Amhad and Adrian Popescu and Christopher Kanan and Joost van de Weijer and Tinne Tuytelaars and Davide Bacciu and Davide Maltoni},
booktitle={Proceedings of IEEE Conference on Computer Vision and Pattern Recognition},
series={2nd Continual Learning in Computer Vision Workshop},
year={2021}
}
Maintained by ContinualAI Lab
Avalanche is the flagship open-source collaborative project of ContinualAI: a non-profit research organization and the largest open community on Continual Learning for AI.
Do you have a question, do you want to report an issue or simply ask for a new feature? Check out the Questions & Issues center. Do you want to improve Avalanche yourself? Follow these simple rules on How to Contribute.
The Avalanche project is maintained by the collaborative research team ContinualAI Lab and used extensively by the Units of the ContinualAI Research (CLAIR) consortium, a research network of the major continual learning stakeholders around the world.
We are always looking for new awesome members willing to join the ContinualAI Lab, so check out our official website if you want to learn more about us and our activities, or contact us.
Learn more about the Avalanche team and all the people who made it great!
Owner
- Login: naort-dev
- Kind: user
- Repositories: 1
- Profile: https://github.com/naort-dev
Citation (CITATION.cff)
# Copyright (c) ContinualAI
cff-version: 1.2.0
title: "Avalanche: an End-to-End Library for Continual Learning"
authors:
- name: "The Avalanche team"
message: "If you used Avalanche in your research project, please remember to cite our paper."
preferred-citation:
authors:
- family-names: Lomonaco
given-names: Vincenzo
- family-names: Pellegrini
given-names: Lorenzo
- family-names: Cossu
given-names: Andrea
- family-names: Carta
given-names: Antonio
- family-names: Graffieti
given-names: Gabriele
- family-names: Hayes
given-names: Tyler L.
- family-names: De Lange
given-names: Matthias
- family-names: Masana
given-names: Marc
- family-names: Pomponi
given-names: Jary
- family-names: Van de Ven
given-names: Gido
- family-names: Mundt
given-names: Martin
- family-names: She
given-names: Qi
- family-names: Cooper
given-names: Keiland
- family-names: Forest
given-names: Jeremy
- family-names: Belouadah
given-names: Eden
- family-names: Calderara
given-names: Simone
- family-names: Parisi
given-names: German I.
- family-names: Cuzzolin
given-names: Fabio
- family-names: Tolias
given-names: Andreas
- family-names: Scardapane
given-names: Simone
- family-names: Antiga
given-names: Luca
- family-names: Amhad
given-names: Subutai
- family-names: Popescu
given-names: Adrian
- family-names: Kanan
given-names: Christopher
- family-names: Van de Weijer
given-names: Joost
- family-names: Tuytelaars
given-names: Tinne
- family-names: Bacciu
given-names: Davide
- family-names: Maltoni
given-names: Davide
title: "Avalanche: an End-to-End Library for Continual Learning"
type: proceedings
year: 2021
conference:
name: "2nd Continual Learning in Computer Vision Workshop"
publisher:
name: "Proceedings of IEEE Conference on Computer Vision and Pattern Recognition"
GitHub Events
Total
Last Year
Dependencies
- actions/checkout v3 composite
- psf/black stable composite
- actions/checkout v3 composite
- docker/build-push-action v2 composite
- docker/login-action v1 composite
- actions/checkout v3 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- ad-m/github-push-action master composite
- actions/checkout v3 composite
- actions/github-script v3 composite
- ad-m/github-push-action master composite
- actions/checkout v3 composite
- ad-m/github-push-action master composite
- actions/checkout v3 composite
- actions/setup-python v2 composite
- cclauss/Find-Python-syntax-errors-action master composite
- actions/checkout v3 composite
- coverallsapp/github-action master composite
- actions/checkout v3 composite
- continualai/avalanche-test-3.9 latest build
- sphinx_copybutton *
- sphinx_rtd_theme *
- ctrl-benchmark *
- dill *
- gdown *
- gym *
- higher *
- lvis *
- pytorchcv *
- typing-extensions ==4.4.0
- dill *
- gdown *
- gputil *
- matplotlib *
- numpy *
- packaging *
- psutil *
- pytorchcv *
- quadprog *
- scikit-learn *
- tensorboard >=1.15
- torch *
- torchmetrics *
- torchvision *
- tqdm *
- typing-extensions ==4.4.0
- wandb *
- dill *
- gdown *
- gputil *
- matplotlib *
- numpy *
- packaging *
- psutil *
- pytorchcv *
- quadprog *
- scikit-learn *
- tensorboard >=1.15
- torch *
- torchmetrics *
- torchvision *
- tqdm *
- typing-extensions ==4.4.0
- wandb *