Implementation of paper Re-basin via implicit Sinkhorn differentiation (Accepted at CVPR 2023).
pip install sinkhorn-rebasin
Basics | |
Models alignment | |
Linear mode connectivity |
cd examples
python main_alignment_{mlp|cnn|resnet}.py
Example | Layer from |
Layer from |
Layer from |
---|---|---|---|
MLP | |||
VGG | |||
ResNet18 |
cd examples
python main_lmc_{mlp|cnn|resnet}.py
Dataset | Model | Accuracy LMC | Cross Entropy Loss LMC |
---|---|---|---|
Mnist | MLP | ||
Mnist | VGG | ||
Imagenette-320 | ResNet18 |