lightly
lightly copied to clipboard
docs: add docstrings to MSN, SimSiam, VICReg, and VICRegL view transforms
Part of #1942
This PR:
- Adds Google-style docstrings to
MSNViewTransform,SimSiamViewTransform,VICRegViewTransform, andVICRegLViewTransform, following the format agreed in #1946: anArgs:block in__init__(name and description on the same line) rather than anAttributes:block on the class - Adds
__init__to:special-members:for these four modules indocs/source/lightly.transforms.rstso the new docstrings render in HTML
This PR does not:
- Change any runtime behavior (docs only)
- Touch the parent
MSNTransform/SimSiamTransform/VICRegTransform/VICRegLTransformdocstrings, which still use the olderAttributes:style — those are out of scope for #1942
Notes:
- Each view docstring mirrors its parent transform's reference:
MSNViewTransformandVICRegLViewTransformcite the method paper;SimSiamViewTransformandVICRegViewTransformdo not, since their parents don't either VICRegLViewTransformonly applies the photometric augmentations (color jitter, grayscale, blur, solarization, normalize) — the crop and flip are applied separately byVICRegLTransform, which the docstring calls out explicitly:special-members: __init__applies to all classes in each module, so the parent transforms'__init__signatures now render too; their parameters are still documented in their class-levelAttributes:blocks
Tested with:
make format-check
make lint
make type-check
python -m pytest tests/transforms
All pass. Docstring augmentation lists were checked against each transform's actual augmentation pipeline.