Download Latest Version rfdetr-1.6.5.post2.tar.gz (218.9 kB)
Email in envelope

Get an email when there's a new version of RF-DETR

Home / 1.6.3
Name Modified Size InfoDownloads / 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. Returned sv.Detections objects now include detections.data["source_image"] (the original image as a NumPy array) and detections.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-detects num_classes from the dataset. When num_classes is 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 to torch.float16; invalid inputs now raise TypeError uniformly. (#899)

đź”§ Fixed

  • Fixed fine-tuned models exporting wrong class counts to ONNX: reinitialize_detection_head now replaces nn.Linear modules instead of mutating tensor data in-place, keeping out_features consistent 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_roboflow raising FileNotFoundError after PyTorch Lightning migration — class_names.txt is now written to the upload directory and args.class_names is 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

Source: README.md, updated 2026-04-02