| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| rfdetr-1.6.3.tar.gz | 2026-04-02 | 206.1 kB | |
| rfdetr-1.6.3-py3-none-any.whl | 2026-04-02 | 239.5 kB | |
| README.md | 2026-04-02 | 2.6 kB | |
| RF-DETR 1.6.3_ auto-detects num_classes source code.tar.gz | 2026-04-02 | 398.0 kB | |
| RF-DETR 1.6.3_ auto-detects num_classes source code.zip | 2026-04-02 | 530.5 kB | |
| Totals: 5 Items | 1.4 MB | 0 | |
🌱 Changed
-
predict()returns source image and shape on detections. Returnedsv.Detectionsobjects now includedetections.data["source_image"](the original image as a NumPy array) anddetections.data["source_shape"](a(height, width)tuple), so you can annotate results without loading the image separately. (#892)python detections = model.predict("https://media.roboflow.com/dog.jpg", threshold=0.5) annotated = sv.BoxAnnotator().annotate(detections.data["source_image"], detections) -
RFDETR.train()auto-detectsnum_classesfrom the dataset. Whennum_classesis not explicitly set, RF-DETR reads the class count from the dataset directory and reinitializes the detection head automatically. A warning is emitted when your configured value differs from the dataset count. (#893)python model = RFDETRSmall() model.train(dataset_dir="./dataset") # num_classes inferred from dataset -
optimize_for_inference()accepts dtype as a string. Pass"float16"or"bfloat16"in addition totorch.float16; invalid inputs now raiseTypeErroruniformly. (#899)
đź”§ Fixed
- Fixed fine-tuned models exporting wrong class counts to ONNX:
reinitialize_detection_headnow replacesnn.Linearmodules instead of mutating tensor data in-place, keepingout_featuresconsistent with the actual weight shape after fine-tuning. (#904) - Fixed
optimize_for_inference()leaking a CUDA context on multi-GPU setups — deep-copy, export, and JIT-trace now run inside the correct device context. Also fixed: state is rolled back cleanly if optimization fails mid-way, and temp download files now use unique per-process paths to prevent parallel worker collisions. (#899) - Fixed
deploy_to_roboflowraisingFileNotFoundErrorafter PyTorch Lightning migration —class_names.txtis now written to the upload directory andargs.class_namesis populated before saving the checkpoint, restoring uploads for all model types including segmentation. (#890)
🏆 Contributors
Welcome to our new contributors, and thank you to everyone who helped with this release:
- Md Faruk Alam (@farukalamai) (LinkedIn) — predict source image and shape
- 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.2...1.6.3