facebookresearch / facebookresearch/AugLy
Is it possible to seed augmentations
- 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
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