Docs proposal: review object-detection augmentation changes in pull requests with CML
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 48/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- github-actions, python, pytorch
- Domain
- ci-cd, documentation, machine-learning
Research direction
Start by reviewing the existing tabular getting-started example in cml.dev and confirm whether this belongs in the docs or a standalone example repository. Then trace the proposed review_augmentation.py, build_report.py, and GitHub Actions workflow, including the AlbumentationsX policy, generated artifacts, and CML publication step. Done means a focused example produces reviewable images, checks, trace details, policy JSON, and a pull-request report without model training or new CML runtime dependencies.
Written by the indexing model from the issue text.
Description
Feature request
Would you be open to a focused guide or small example repository for ML teams that need to review an object-detection augmentation-policy change in a pull request before merging it or spending compute on model training?
User problem
A change to stochastic preprocessing can alter an image while silently mishandling its bounding boxes or class labels. A unit test can check shapes and coordinate ranges, but it does not let a reviewer see whether the transformed training samples still make sense. Discovering the problem from model metrics is late and makes the cause harder to isolate.
CML already turns generated images, tables, and Markdown into a pull-request comment or check. AlbumentationsX can apply one label-aware policy to an image, its boxes, and their class IDs, use a stable sample-level invocation_seed, and expose both the serialized policy and the transforms realized for a sample.
Together, they could give a reviewer a compact augmentation report directly in the pull request:
- the fixed input scene and its annotations;
- transformed samples for a small set of stable seeds;
- pass/fail annotation invariants;
- the transforms and sampled parameters realized for each preview; and
- the resolved augmentation policy used by CI.
The reviewer could inspect the data effect of the code change before approving it. The example would demonstrate a CML review workflow rather than a generic augmentation snippet.
Proposed workflow
The example would use a generated detection scene, avoiding dataset downloads and data-license dependencies. A small Python script would:
- construct an AlbumentationsX policy for an image, Pascal VOC bounding boxes, and
class_labels; - apply it to the same fixture with stable
invocation_seedvalues such as17and29; - assert that returned boxes and labels remain paired and that coordinates are valid for the output image;
- render the original and transformed annotations as contact-sheet images;
- write a compact applied-transform table from AX
run_with_trace()output; and - save
A.to_dict(policy)as JSON for policy provenance.
The GitHub Actions job would then assemble a Markdown report and publish it with the existing CML interface:
- uses: actions/checkout@v4
- uses: iterative/setup-cml@v1
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Build augmentation review
run: |
pip install -r requirements.txt
python review_augmentation.py --output artifacts
- name: Publish CML report
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python build_report.py --artifacts artifacts --output report.md
cml comment create report.md
The report could contain a small table such as:
| Input | AX policy, seed 17 | AX policy, seed 29 |
|---|---|---|
| Original boxes and labels | Transformed boxes and labels | Transformed boxes and labels |
Below the images, it would show the annotation checks and collapsible policy/trace details. No model training, external service, or DVC dependency would be required.
Why this fits CML
- CML owns the CI and pull-request review surface: it publishes the generated evidence where the code change is being discussed.
- AlbumentationsX owns synchronized image/box/label transformation, repeatable sample realizations, execution details, and policy serialization.
- The user gets an early, reviewable answer to “does this augmentation change still produce valid labeled training samples?”
The existing tabular getting-started example would remain unchanged. This could be a standalone advanced guide in cml.dev or a separate focused example repository, whichever is easier for the maintainers to own.
Dependency boundary
- The public
albumentationsxpackage is AGPL-3.0-only and imports asalbumentations. - Importing it requires PyTorch. PyTorch is intentionally not selected by the package metadata because users need to choose the appropriate CPU, CUDA, or MPS build.
- These dependencies would remain scoped to the example and would not become CML runtime dependencies.
I searched the current iterative/cml and iterative/cml.dev code, Issues, and pull requests and found no existing Albumentations or AlbumentationsX integration or overlapping augmentation-review proposal.
If this use case fits the CML documentation, I would be happy to implement and run the example after the maintainers confirm the preferred placement.
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from iterative/cml.dev
-
Link Checker ReportOpenlink-check-all
Difficulty 2/5 1-3 hours Newbie friendliness 40/100
-
Link Checker ReportOpenlink-check-all
Difficulty 1/5 Under an hour Newbie friendliness 45/100
-
crossref DVCLiveMay be free again @casperdcl claimed this 1390 days ago, and no pull request is open. OpenC: guide C: ref documentation p1-important
-
docs: driver token timeoutMay be free again @dacbd claimed this 1403 days ago, and no pull request is open. OpenC: guide C: ref documentation
-
guide: separate env varsMay be free again @casperdcl claimed this 1431 days ago, and no pull request is open. OpenC: guide documentation enhancement external-request p1-important
All issues in iterative/cml.dev
Similar issues
-
clawsweeper:intake:bug clawsweeper:intake:needs-environment
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openclaw/openclaw#212827 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Use one constant for the 10,000-character input limitPossibly taken @NginxL claimed this today. Opengood first issue refactor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aniru-dh21/snap-validate#51 ·
Maintainers usually reply within 1 day
-
dependencies effort: small good first issue priority: low
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
TMHSDigital/screencast-mcp#509 ·
Maintainers usually reply within 1 day
-
from-review tech-debt testing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
blamechris/chroxy#9520 ·
Maintainers usually reply within 1 day