name: lightly
description: "Use LightlySSL for self-supervised computer-vision training, model
components, CLIs, embeddings, data layout, evaluation, and repository
maintenance."
disable-model-invocation: true
metadata:
disco-role: operating
license: MIT
LightlySSL Repo Skill
Use this skill when a task names lightly, LightlySSL, self-supervised computer vision, Lightly's CLI commands, SSL transforms/losses/heads, image-folder embeddings, YOLO crop helpers, or maintenance of the LightlySSL repository.
Quick setup
- Public install:
pip install lightly
- Optional TIMM/ViT modules:
pip install "lightly[timm]"
- Optional direct video support:
pip install "lightly[video]"
- Minimal import check:
python - <<'PY'
import lightly
from lightly.loss import NTXentLoss
from lightly.transforms import SimCLRTransform
print(lightly.__version__, NTXentLoss, SimCLRTransform)
PY
For a richer environment smoke, run the bundled environment checker. It imports core modules, reports optional TIMM/video availability, and can do a tiny tensor check without downloads.
Route map
| Need | Read |
|---|
| Assemble datasets, collates, transforms, losses, projection heads, memory banks, or method-to-component mappings. | ssl-building-blocks |
| Adapt a bare PyTorch, PyTorch Lightning, or distributed Lightly SSL training recipe without downloading repo examples. | training-workflows |
Build or validate lightly-version, lightly-ssl-train, lightly-embed, lightly-magic, lightly-crop, Hydra overrides, input folders, embeddings CSVs, or YOLO crop labels. | cli-data-embedding |
| Use KNN/linear evaluation utilities or choose repository checks for changes to losses, transforms, examples, docs, notebooks, or distributed tests. | evaluation-maintenance |
Shared references
Operating rules
- Do not run training, embedding, crop, notebook, benchmark, or distributed commands until the user provides data paths, output policy, and runtime budget.
- Prefer bundled scripts for safe preflight: environment checks, component smoke checks, CLI command construction, folder validation, tiny YOLO fixtures, and synthetic SimCLR steps.
- Treat GPU, distributed, TIMM, and video support as optional unless the user explicitly asks for them; verify the relevant backend/extra before claiming it works.
- Keep source-code maintenance guidance separate from package-use guidance. When editing the repository, use the maintenance sub-skill to select focused checks before broad
make all-checks.