| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| rfdetr-1.6.5.tar.gz | 2026-04-22 | 218.7 kB | |
| rfdetr-1.6.5-py3-none-any.whl | 2026-04-22 | 253.2 kB | |
| README.md | 2026-04-22 | 4.0 kB | |
| RF-DETR 1.6.5_ fixing EMA _ PE source code.tar.gz | 2026-04-22 | 434.5 kB | |
| RF-DETR 1.6.5_ fixing EMA _ PE source code.zip | 2026-04-22 | 567.0 kB | |
| Totals: 5 Items | 1.5 MB | 1 | |
⚠️ Breaking Changes
-
source_imagemoved fromdatatometadata.predict()now stores the original input image indetections.metadata["source_image"]instead ofdetections.data["source_image"]. This fixesIndexErrorwhen boolean- or integer-indexingsv.Detectionswithinclude_source_image=True(the default) — supervision indexes every value indataby the detection mask, but passesmetadatathrough unchanged. Update any code that reads the source image: (#972)```python
Before (1.6.3–1.6.4)
image = detections.data["source_image"]
After (1.6.5+)
image = detections.metadata["source_image"] ```
🔧 Fixed
-
Fixed segmentation training crash on T4 and P100 GPUs. cuDNN engine selection fails for depthwise convolution backward on some CUDA stacks (Kaggle, Colab). The previous workaround only disabled cuDNN in the forward pass; backward kernels still ran with cuDNN enabled. A custom
autograd.Functionnow disables cuDNN in both forward and backward. (#967) -
Fixed EMA segmentation mAP logged from base metrics.
ema_segm_mAP_50_95andema_segm_mAP_50were computed from the base (non-EMA) metric accumulator instead of the EMA accumulator, producing misleading validation scores for segmentation models. Both metrics now use the correct EMA source. (#980) -
Fixed
BestModelCallbacklosing best EMA score on resume. The_best_emavalue was not persisted instate_dict(), so resuming training reset the EMA best-model tracker and could overwrite a better earlier checkpoint. (#973) -
Fixed
positional_encoding_sizenot updating with custom resolution. Settingresolutionat construction time (e.g.RFDETRLarge(resolution=640)) did not update the positional encoding grid size, causing shape mismatches during forward. A model validator now auto-syncspositional_encoding_sizewhen a custom resolution is provided. (#956) -
Fixed pretrained weight loading crash with custom resolution. Loading COCO pretrained weights into a model with a non-default resolution failed because the DINOv2 positional embeddings had an incompatible shape. Pretrained PE tensors are now bicubic-interpolated to match the target grid before loading. (#964)
```python
This now works — PE is automatically interpolated from 560px grid to 640px
model = RFDETRLarge(resolution=640) ```
-
Fixed cryptic error on
patch_sizemismatch. When loading checkpoints without explicitargs.patch_size, the first error was an opaqueRuntimeErrorfromload_state_dict. The compatibility check now inferspatch_sizefrom the DINOv2 projection weight shape and raises a descriptiveValueErrorexplaining the mismatch. (#971) -
Fixed
source_shapecausingTypeErroronsv.Detectionsiteration.predict()storedsource_shapeas a Pythontuple, whichsv.Detectionscannot index per-detection. It is now annp.ndarrayof shape(N, 2)with dtypeint64, where each row is[height, width]. (#966) -
Fixed spurious "class_id out of range" warning for background class. RF-DETR uses
num_classes + 1logits internally; class indexnum_classesis the background/no-object class and is expected. Background-class detections now mapclass_nameto"__background__"without a warning. (#970)
🏆 Contributors
Welcome to our new contributors, and thank you to everyone who helped with this release:
- Md Faruk Alam (@farukalamai) (LinkedIn)— cuDNN depthwise conv backward fix for T4/P100
- M. Fazri Nizar (@mfazrinizar) (LinkedIn) — EMA segmentation metrics fix
- Jirka Borovec (@Borda) (LinkedIn) — release coordination, reviews
Automated contributions: @copilot-swe-agent[bot], @pre-commit-ci[bot]
Full changelog: https://github.com/roboflow/rf-detr/compare/1.6.4...1.6.5