facebookresearch / facebookresearch/AugLy

Is it possible to seed augmentations

Open
#119 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
5.1k
Forks
312
PR merge metrics
No merged PRs in 30d

Description

## 🚀 Feature
Checked the code and it doesn't seem possible to seed the augmenters.

## Motivation

To reproduce the same augmented test sets.
Also to (deterministically) augment small test sets.

## Pitch

Adding the possibility to seed augmenters like `My_Augmenter(**my_params, seed=42)` which would make reproducible augmentations. Not always the same for all the batch but always in the same order in a reproducible manner.

## Alternatives

Don't use augmentation in the test set.

## Additional context
I'm working with text, and I would like to augment a test set but the idea also apply to images and audio.

Thanks in advance and thanks a lot for this nice library !

Contributor guide

Open the contributing guide

Research direction

Start by surveying the augmenter implementations for text, image, audio, and video, along with how randomness is currently handled. Define the reproducibility expectations for a seed across batches and modalities; the work is done when augmentations can be seeded consistently and the behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.