Tutorial proposal: compare segmentation augmentation policies with DVC Experiments
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Dokumentation
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- python
- Bereich
- data, documentation, machine-learning
Rechercherichtung
Beginnen Sie mit der Durchsicht von example-get-started-experiments und der Entscheidung zum fixed-test-set in issue #188. Klären Sie anschließend mit den Maintainers, ob dies in dieses Beispiel, ein separates Repository oder dvc.org gehört. Die Fertigstellung wäre ein eigenständiges Tutorial mit der vorgeschlagenen Augmentierungsstufe, reproduzierbaren abgeleiteten Daten und Previews, Richtlinienparametern sowie vergleichbaren Dice-Ergebnissen für beide Richtlinien.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Would you be open to a small standalone tutorial showing how DVC Experiments can compare two image-augmentation policies for the same segmentation task, including the exact derived training data, representative image/mask previews, and the resulting Dice score?
User problem
Changing an augmentation policy changes the effective training dataset. A metric alone does not show which labeled samples the model actually saw, and an image preview alone does not preserve the dataset and policy that produced the result.
The current example-get-started-experiments already demonstrates the important DVC pieces for the swimming-pool segmentation task: a staged pipeline, parameters, cached outputs, experiment queues, Dice evaluation, and DVCLive image plots. Issue #188 also established that the test set must remain fixed for metrics and prediction images to be comparable across experiments.
The proposed tutorial would keep that test set and evaluation unchanged. It would vary only a versioned training-data preparation stage.
Proposed workflow
- Add an optional
augmentstage afterdata_split. It reads each training image/mask pair and writes a materialized derived dataset. - Select a bounded
lightorstrongpolicy through DVC parameters. - Use AlbumentationsX to apply each sampled geometric transform to the image and mask together. A stable seed derived from the sample ID and variant index is passed as
invocation_seed, so rerunning the stage produces the same files independently of processing order. - Validate that every output image/mask pair has matching spatial dimensions and that each mask still contains only the declared segmentation labels.
- Save the resolved policy from
policy.to_dict()next to the derived dataset and log a small fixed set of original/augmented image-and-mask previews with DVCLive. - Train and evaluate the same model for both policies. DVC then connects the selected parameters, stage dependencies, cached dataset output, previews, and Dice metric for each experiment.
A compact stage boundary could look like this:
stages:
augment:
cmd: python src/augment.py
deps:
- data/train_data
- src/augment.py
params:
- base.random_seed
- augmentation
outs:
- data/train_augmented
- results/augment
The AX call inside that stage remains explicit:
augmented = policy(
image=image,
mask=mask,
invocation_seed=sample_seed,
)
The user can then answer two related questions from one experiment comparison: what did this policy do to the labeled training data, and how did that dataset change affect the fixed evaluation?
Scope and placement
This would be a tutorial/example contribution. It requires no DVC or DVCLive API change.
The augmentation stage is independent of the training framework, so the proposal does not depend on the current fastai implementation and can coexist with the migration discussed in #255.
Would maintainers prefer this as:
- an optional advanced variant of
example-get-started-experiments; - a separate generated example repository; or
- a focused dvc.org tutorial that leaves the foundational example unchanged?
If the workflow fits the project, I can prepare the tutorial after your guidance on the surface and training-framework target.
Optional dependency boundary
The example would install AlbumentationsX only in its own environment. The current public package is AGPL-3.0-only and requires Python 3.10 or newer. Users install the PyTorch build appropriate for CPU, CUDA, or MPS before AlbumentationsX; PyTorch is intentionally not selected through the AlbumentationsX package metadata.
- Vorherrschende Sprache
- Python
- Sterne
- 21
- Forks
- 13
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus iterative/example-repos-dev
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
iterative/example-repos-dev#272 ·
-
`example-get-started-experiments`: redeploy to same endpointEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
iterative/example-repos-dev#265 · 2 Kommentare ·
-
A: example-get-started-experiments enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
iterative/example-repos-dev#255 · 1 Kommentar · 1 Reaktion ·
-
Clean Git remoteOffen🏠 housekeeping A: example-get-started-experiments
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
iterative/example-repos-dev#246 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
iterative/example-repos-dev#244 ·
Alle Issues in iterative/example-repos-dev
Ähnliche Issues
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
country:US rating:6 request-theme type:TV SHOW
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 65/100
LizardByte/ThemerrDB#10501 · 1 Kommentar ·
-
triage/confirmed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
agentscope-ai/agentscope#4563 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
comp/desktop desktop/chat P3 type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
NousResearch/hermes-agent#164451 ·
Maintainer antworten meist innerhalb von 1 Tag
-
external integration integration-submission
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
langchain-ai/docs#8426 ·
Maintainer antworten meist innerhalb von 1 Tag