'patches' implements contrastive coding using torch, allows an easy comparison with alternative supervised and unsupervised learning algorithms, and provides example datasets.
You can install patches using
pip install git+https://github.com/sflippl/patches
or alternatively get started online by clicking on the Colab badge on the tutorial pages of the website.