lightly-ai/lightly

Fix examples on Windows

Opened this issue · 0 comments

We sometimes use lambdas in the examples when creating torch datasets:

target_transform=lambda t: 0,

This results in issues on Windows as lambdas cannot be pickled. We should update the examples and replace the lambdas with pickleable functions.