Tutorial proposal: compare segmentation augmentation policies with DVC Experiments
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 35/100
- Type d'issue
- Documentation
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- python
- Domaine
- data, documentation, machine-learning
Piste de recherche
Commencez par examiner example-get-started-experiments et la décision concernant fixed-test-set dans issue #188, puis confirmez avec les maintainers si cela doit faire partie de cet exemple, d’un repository séparé ou de dvc.org. Le résultat attendu est un tutoriel autonome avec l’étape d’augmentation proposée, des données dérivées et des previews reproductibles, des paramètres de politique et des résultats Dice comparables pour les deux politiques.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Python
- Étoiles
- 21
- Forks
- 13
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de iterative/example-repos-dev
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
iterative/example-repos-dev#272 ·
-
`example-get-started-experiments`: redeploy to same endpointPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
iterative/example-repos-dev#265 · 2 commentaires ·
-
A: example-get-started-experiments enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
iterative/example-repos-dev#255 · 1 commentaire · 1 réaction ·
-
Clean Git remoteOuverte🏠 housekeeping A: example-get-started-experiments
Difficulté 3/5 1-2 jours Accessibilité débutants 25/100
iterative/example-repos-dev#246 ·
-
Add olivaw personal access tokenOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
iterative/example-repos-dev#244 ·
Toutes les issues de iterative/example-repos-dev
Issues similaires
-
jira: an unquoted JQL number of more than 4300 digits is a plain-text 500, where real answers 200Ouvertefidelity
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
A JSON chat answer blocks the backend event loop for the whole RAG runPeut-être pris @NopeCharon l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
The-OpenROAD-Project/ORAssistant#656 ·
Les mainteneurs répondent en général sous 1 jour
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPeut-être pris @jejjohnson l’a pris aujourd’hui. Ouvertetype:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
jejjohnson/integrix#144 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
finos/ai-governance-framework#459 ·
-
slurm: a case outcome nested too deep crashes status/collect instead of reading as no outcomeOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Les mainteneurs répondent en général sous 1 jour