Skip to content

Refactor Models, SwAV Model, S3-Bucket Integration

Compare
Choose a tag to compare
@MalteEbner MalteEbner released this 04 Oct 09:22
· 786 commits to master since this release
76aed5b

Refactor Models, SwAV Model, S3-Bucket Integration

Refactor Models

This release will make it much easier to implement new models or adapt existing models by using basic building blocks. E.g. you can define your own model out of blocks like a backbone, projection head, momentum encoder, nearest neighbour memory bank and more.
We want you to see easily how the models in current papers are build and that different papers often only differ in one or two of these blocks.
Compatible examples of all models are shown in the benchmarking scripts for imagenette and cifar10.

As part of this refactoring to improve flexibility of the framework we have added a deprecation warning to all old models under lightly/models, e.g.:

The high-level building block NNCLR will be deprecated in version 1.2.0. 
Use low-level building blocks instead. 
See https://docs.lightly.ai/lightly.models.html for more information

These models will be removed with the upcoming version 1.2. The necessity of the refactoring stems from a lack of flexibility which makes it difficult to keep up with the latest publications.

SwAV Model

Lightly now supports the Swapping assignment between views (SWaV) paper. Thanks to the new system with building blocks, we could implement it more easily.

S3Bucket Integration

  • We added documentation on how to use an S3Bucket as input directory for lightly. It allows you to train your model and create embeddings without needing to download all your data.

Other

  • When uploading the embeddings to the Lightly Platform, no file embeddings_sorted.csv is created anymore, as it was only used internally. We also made the upload of large embeddings files faster.

Models