Models
First things first: let's start with a good model!
Support for pytorch Modules
!pip install avalanche-lib==0.2.1from avalanche.models import SimpleCNN
from avalanche.models import SimpleMLP
from avalanche.models import SimpleMLP_TinyImageNet
from avalanche.models import MobilenetV1
model = SimpleCNN()
print(model)Dynamic Model Expansion
from avalanche.benchmarks import SplitMNIST
from avalanche.models import IncrementalClassifier
benchmark = SplitMNIST(5, shuffle=False)
model = IncrementalClassifier(in_features=784)
print(model)
for exp in benchmark.train_stream:
model.adaptation(exp)
print(model)Multi-Task models
How to define a multi-task Module
π€ Run it on Google Colab
Last updated
Was this helpful?