DeprecationWarning on import.
Module renames
The table below maps every deprecated module path to its canonical replacement.| Deprecated module | Canonical replacement |
|---|---|
rfdetr.util.coco_classes | rfdetr.assets.coco_classes |
rfdetr.util.misc | rfdetr.utilities |
rfdetr.util.logger | rfdetr.utilities.logger |
rfdetr.util.box_ops | rfdetr.utilities.box_ops |
rfdetr.util.files | rfdetr.utilities.files |
rfdetr.util.package | rfdetr.utilities.package |
rfdetr.util.get_param_dicts | rfdetr.training.param_groups |
rfdetr.util.drop_scheduler | rfdetr.training.drop_schedule |
rfdetr.util.visualize | rfdetr.visualize.data |
rfdetr.deploy | rfdetr.export |
rfdetr.models.segmentation_head | rfdetr.models.heads.segmentation |
Migration examples
rfdetr.util.coco_classes → rfdetr.assets.coco_classes
rfdetr.util.coco_classes → rfdetr.assets.coco_classes
rfdetr.util.misc → rfdetr.utilities
rfdetr.util.misc → rfdetr.utilities
rfdetr.util.logger → rfdetr.utilities.logger
rfdetr.util.logger → rfdetr.utilities.logger
rfdetr.util.box_ops → rfdetr.utilities.box_ops
rfdetr.util.box_ops → rfdetr.utilities.box_ops
rfdetr.util.get_param_dicts → rfdetr.training.param_groups
rfdetr.util.get_param_dicts → rfdetr.training.param_groups
rfdetr.util.drop_scheduler → rfdetr.training.drop_schedule
rfdetr.util.drop_scheduler → rfdetr.training.drop_schedule
rfdetr.util.visualize → rfdetr.visualize.data
rfdetr.util.visualize → rfdetr.visualize.data
rfdetr.deploy → rfdetr.export
rfdetr.deploy → rfdetr.export
rfdetr.models.segmentation_head → rfdetr.models.heads.segmentation
rfdetr.models.segmentation_head → rfdetr.models.heads.segmentation
TrainConfig deprecated fields
The following fields onTrainConfig are deprecated as of the current release. Each field now belongs on ModelConfig — setting it on TrainConfig emits a DeprecationWarning.
| Deprecated field | Reason | Use instead |
|---|---|---|
TrainConfig.group_detr | Architecture decision | Set on ModelConfig |
TrainConfig.ia_bce_loss | Loss type tied to architecture family | Set on ModelConfig |
TrainConfig.segmentation_head | Architecture flag | Set on ModelConfig |
TrainConfig.num_select | Postprocessor count is an architecture decision | Set on ModelConfig; SegmentationTrainConfig users should remove the override entirely |
Version history
| Version | Date | Notable changes |
|---|---|---|
| 1.6.1 | 2026-03-25 | RFDETR.export(simplify=..., force=...) deprecated (no-op, removed in v1.8); PTL checkpoint fixes |
| 1.6.0 | 2026-03-20 | rfdetr.deploy.* and rfdetr.util.* deprecated with redirects; PyTorch Lightning training; multi-GPU DDP; rfdetr[metrics] → rfdetr[loggers] rename |
| 1.5.2 | 2026-03-04 | Peak GPU memory in progress bars; segmentation evaluation metric fixes |
| 1.5.1 | 2026-02-27 | Nested Albumentations container support; torchvision-native transform pipeline |
| 1.5.0 | 2026-02-23 | Custom training augmentations via aug_config; ClearML and MLflow loggers; live training progress bar |