Repository navigation
pretrain_weights=None now builds an RFDETRXLarge/RFDETR2XLarge architecture without fetching any weights — base rfdetr already allowed this, RF-DETR-Plus configs had narrowed the annotation to plain str, so an explicit None failed pydantic validation. That's the fix in this release. The rfdetr floor also moves to 1.8.0, ensuring compatibility with upstream compile/cuda_graphs support, with documented compile=True version-gating guidance. No breaking changes.
✨ Spotlights / highlights
No-download architecture construction restored
model = RFDETRXLarge(pretrain_weights=None, accept_platform_model_license=True)builds the architecture without fetching weights, matching base rfdetr behavior (this triggers a PretrainWeightsCompatibilityWarning — expected, silence with warnings.filterwarnings if noisy). PathLikeStr is imported from rfdetr.config behind a try/except ImportError fallback (absent in the 1.8.0 floor, present by 1.9.4):
rfdetr floor raised to 1.8.0 — compile/cuda_graphs compatibility
Ensures compatibility with upstream compile/cuda_graphs support. compile=True is a no-op below rfdetr 1.10.0, and not multi_scale-safe until 1.10.1 — pin rfdetr>=1.10.1 if you need working compile acceleration.
🔄 Migration guide
No breaking changes in this release.
- Minimum
rfdetrdependency raised to1.8.0(from1.6.0). If you pinrfdetrexplicitly, bump to>=1.8.0,<2. - If you rely on
compile=True, pinrfdetr>=1.10.1— versions below1.10.0treat it as a no-op, and it is notmulti_scale-safe until1.10.1. - Internal config resolution moved from
get_model_config()/get_train_config()method overrides to a_model_config_classclass attribute — no observable behavior change; a subclass that still overrides those methods keeps working unchanged. - If you previously worked around
pretrain_weights=Nonefailing validation, that workaround is no longer needed.
📝 Notable changes
🌱 Changed
- Minimum
rfdetrdependency raised from1.6.0to1.8.0, ensuring compatibility with upstreamcompile/cuda_graphssupport; docs gaincompileversion-gating guidance. (#38, #64) - Config resolution moved from
get_model_config()/get_train_config()method overrides to the_model_config_classclass attribute — internal simplification, verified to have no observable behavior change. (#64)
🔧 Fixed
- No-download construction restored:
pretrain_weights=Nonebuilds architecture without fetching weights on both Plus configs. (#64)
🏆 Contributors
- Jirka Borovec (@Borda, LinkedIn) — no-download construction fix, config resolution simplification, plus tooling/CI cleanup (#65, #66)
Automated contributions: @Copilot, @dependabot, @pre-commit-ci
Full changelog: 1.0.2...1.1.0