https://github.com/ruhyadi/augmentation-hydra
Augmentation with Hydra Config
https://github.com/ruhyadi/augmentation-hydra
augmentation hydra
Last synced: 8 months ago
JSON representation
Augmentation with Hydra Config
- Host: GitHub
- URL: https://github.com/ruhyadi/augmentation-hydra
- Owner: ruhyadi
- License: apache-2.0
- Created: 2022-06-01T15:12:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-19T14:31:38.000Z (over 3 years ago)
- Last Synced: 2025-01-02T02:24:20.680Z (10 months ago)
- Topics: augmentation, hydra
- Language: Python
- Homepage: https://ruhyadi.github.io/blog/augmentation-hydra/
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Augmentation with Hydra
Hydra gives you the power to configure augmentation without changing code in the python file (`main.py`). Instead, you can change augmentation parameters in `configs/augmentation/transforms.yaml`, or change it within a terminal. Another power of Hydra is an experiment. You can make your experiment augmentation parameters in `configs/experiment/your_exp.yaml`.
Change augmentation with terminal:
```py
python src/main.py \
augmentation.resize.size=150 \
augmentation.random_crop.size=125 \
augmentation.random_perspective.distortion_scale=0.35
```Change augmentation with an experiment:
```py
python src/main.py experiment=your_exp
```## Acknowledgment
- Awesome Hydra Template [ashleve/lightning-hydra-template](https://github.com/ashleve/lightning-hydra-template)