You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: A new contrastive loss (Barlow Twins) (#1259)
* Add Barlow Twins loss as a new contrastive loss
* update CHANGELOG.md
* Add BarlowTwinsLoss into catalyst/contrib/nn/criterion/__init__.py
* Add example with simple test
* Delete test code
* Barlow Twins cross-correlation matrix - a laconic way of off-diagonal element selection
* handle zero varience
* Example from >>> to code-block
* add explicit BarlowTwinsLoss init check into test_criterion_init
* Add simple test for Barlow Twins loss
* typo std -> var
* i.i.d. distibuted and normalized
* delete unbised from torch.var
* lambda influence testing
* hidden trailing whitespace
* Update catalyst/contrib/nn/criterion/contrastive.py
lmbda -> lambda
Co-authored-by: Sergey Kolesnikov <scitator@gmail.com>
* rename parameter lmbda -> offdiag_lambda
* Add ValueErrors into BarlowTwinsLoss
* laconic example in BarlowTwinsLoss
* rebase
* Fixed typo
Co-authored-by: Mykola Lukashchouk <mykola@Mac-mini-Mykola.local>
Co-authored-by: Sergey Kolesnikov <scitator@gmail.com>
0 commit comments