Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Latest commit

 

History

History
13 lines (7 loc) · 774 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 774 Bytes

This repo has been incorporated into the Lightly repo for self-supervised learning.

You find the NNCLR model with code examples there: https://docs.lightly.ai/examples/nnclr.html

Please create any issues in the Lightly repository. This repository is not maintained anymore.

NNCLR

Basic implementation:

source/nn_memory_bank.py implements a memory bank with nearest neigbours. In its forward pass, you input an output which updates the bank. Then the nearest neighbours to the output are returned.

nn_with_simsiam.py is mostly the same file as from https://github.com/IgorSusmelj/simsiam-cifar10/blob/main/main.py. It is changed to replace the embeddings for out0 with their nearest neighbours from the memory bank.