lightly-ai / lightly

A python library for self-supervised learning on images.
https://docs.lightly.ai/self-supervised-learning/
MIT License
2.83k stars 246 forks source link

Import error in tutorial 5 - Custom augmentation #1539

Closed hmf closed 1 month ago

hmf commented 1 month ago

In tutorial 5, we see an initial single line:

import copy

In the corresponding download link to tutorial_custom_augmentations.py we see that this line is not in a cell (comment starting with %%). When we execute this file in VSCode, that first import is ignored and execution fails during training.

We just need that import in the first cell.

HTHs

philippmwirth commented 1 month ago

Great catch, thanks! That should be an easy fix. Do you want to create a pull request for it?

hmf commented 1 month ago

Pull request: https://github.com/lightly-ai/lightly/pull/1541

philippmwirth commented 1 month ago

Closed by #1541, thanks a lot!