lightly icon indicating copy to clipboard operation
lightly copied to clipboard

Add missing docstrings to public ViewTransform classes

Open saud5150 opened this issue 5 months ago • 3 comments

14 public view-transform classes have no docstring:

  • SimCLRViewTransform
  • BYOLView1Transform, BYOLView2Transform
  • DINOViewTransform
  • IBOTViewTransform
  • MSNViewTransform
  • SimSiamViewTransform
  • SwaVViewTransform
  • SmoGViewTransform
  • VICRegViewTransform, VICRegLViewTransform
  • FDAView1Transform, FDAView2Transform
  • DetConSViewTransform

All are exported from lightly.transforms and rendered by autodoc in docs/source/lightly.transforms.rst, so they currently show up in the docs without any description.

I'd like to add Google-style docstrings mirroring each parent transform's docstring (same Attributes: section, since the parameters are identical), split into ~4 PRs grouped by method family so reviews stay small. First PR (SimCLR only) is ready and can serve as the format pilot — happy to adjust the format there before doing the remaining classes.

saud5150 avatar Jun 12 '26 11:06 saud5150

Perfect, we're very happy to receive those!

liopeer avatar Jun 16 '26 08:06 liopeer

A docs fix here would be more useful if it includes a minimal, copy-pasteable example for “Add missing docstrings to public ViewTransform classes” rather than only describing the behavior. A short verification step would also help users tell whether SimCLRViewTransform is configured correctly or they are hitting a separate environment problem.

hiSandog avatar Jul 05 '26 04:07 hiSandog

Hi I agree @hiSandog! However, this issue was actually completely worked through by @saud5150 already anyway, so I will skip adding it now and close it. 🙂

liopeer avatar Jul 07 '26 08:07 liopeer