Skip to content

refactor(aug): rename aug_config to aug_configs across project - #1103

Merged
Borda merged 2 commits into
developfrom
rename/configs
Jun 13, 2026
Merged

Borda merged 2 commits into
developfrom
rename/configs

Conversation

@Borda

@Borda Borda commented Jun 13, 2026

Copy link
Copy Markdown
Member

This pull request updates all references to the aug_config module throughout the codebase and documentation, changing them to the new module name aug_configs. This ensures consistency and prevents import errors after the module was renamed. The changes affect both code files and documentation/tutorials.

Codebase updates:

  • Updated imports in all relevant modules and test files to use rfdetr.datasets.aug_configs instead of rfdetr.datasets.aug_config for augmentation presets and configs. [1] [2] [3] [4] [5]

Documentation and notebooks:

  • Updated all code examples and import statements in documentation files and notebooks to reference aug_configs instead of aug_config. [1] [2] [3] [4] [5]

Copilot AI review requested due to automatic review settings June 13, 2026 08:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR renames the augmentation preset module reference from rfdetr.datasets.aug_config to rfdetr.datasets.aug_configs across runtime code, tests, and user-facing docs/notebooks to match the new module name and avoid import errors.

Changes:

  • Updated Python imports in training/data modules and dataset code to use rfdetr.datasets.aug_configs.
  • Updated tests to import augmentation presets/configs from aug_configs.
  • Updated documentation and example notebooks to reference aug_configs in code examples.

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/training/test_module_data.py Updates test import to new augmentation module name.
tests/datasets/test_kornia_transforms.py Updates augmentation preset imports to aug_configs.
tests/datasets/test_augmentations.py Updates augmentation config/preset imports to aug_configs.
src/rfdetr/training/module_data.py Switches default augmentation config import to aug_configs.
src/rfdetr/datasets/coco.py Switches default augmentation config import to aug_configs (but some docstring references still mention aug_config).
src/rfdetr/datasets/aug_configs.py Adds/updates the new augmentation presets module (docstring still contains outdated import/example formatting).
notebooks/release-demo_1-5.ipynb Updates example imports to aug_configs.
docs/learn/train/augmentations.md Updates docs examples to import from aug_configs.
docs/learn/train/advanced.md Updates code block import to aug_configs (but one inline reference still mentions aug_config).
docs/cookbooks/release-demo_1-5.ipynb Updates example imports to aug_configs.

Comment thread docs/learn/train/advanced.md Outdated
Comment thread src/rfdetr/datasets/coco.py
Copilot finished work on behalf of Borda June 13, 2026 08:30
@codecov

codecov Bot commented Jun 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81%. Comparing base (398b13e) to head (8fa5f91).

❌ Your project check has failed because the head coverage (81%) is below the target coverage (95%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #1103   +/-   ##
=======================================
  Coverage       81%     81%           
=======================================
  Files          106     106           
  Lines        11046   11046           
=======================================
+ Hits          8955    8956    +1     
+ Misses        2091    2090    -1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Borda
Borda merged commit 3fe9bab into develop Jun 13, 2026
26 checks passed
@Borda
Borda deleted the rename/configs branch June 13, 2026 09:02
@Borda Borda mentioned this pull request Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants