| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| rfdetr-1.6.2-py3-none-any.whl | 2026-03-27 | 236.3 kB | |
| rfdetr-1.6.2.tar.gz | 2026-03-27 | 202.3 kB | |
| README.md | 2026-03-27 | 1.9 kB | |
| RF-DETR 1.6.2_ Predict shapes source code.tar.gz | 2026-03-27 | 386.5 kB | |
| RF-DETR 1.6.2_ Predict shapes source code.zip | 2026-03-27 | 517.3 kB | |
| Totals: 5 Items | 1.3 MB | 0 | |
🚀 Added
-
RFDETR.predict(shape=...)— pass an explicit(height, width)tuple to run inference at a non-square resolution, matching the resolution used when exporting the model. Both dimensions must be positive integers divisible by 14. (#866)python detections = model.predict("image.jpg", shape=(480, 640))
🌱 Changed
-
ModelConfig.deviceandRFDETR.train(device=...)now accepttorch.deviceobjects and indexed device strings ("cuda:0","cuda:1"). Existing string values ("cpu","cuda") are unchanged.RFDETR.train()warns when a valid but unmapped device type is passed to PyTorch Lightning auto-detection. (#872)```python from rfdetr import RFDETRSmall from torch import device
model = RFDETRSmall(...)
model.train(..., device=device("cuda:1")) model.train(..., device="cuda:0") ```
🔧 Fixed
- Fixed ONNX export ignoring an explicit
patch_sizeargument:export()andpredict()now resolvepatch_sizefrommodel_configby default, validate it strictly (must be a positive integer, not bool), and enforce that(H, W)dimensions are divisible bypatch_size × num_windows. (#876) - Fixed ONNX export for models traced with dynamic batch dimensions —
torch.fullis now used for Python-int spatial dims to avoidH_.expand(N_)tracer failures. (#871)
🏆 Contributors
Welcome to our new contributors, and thank you to everyone who helped with this release:
- zhaoshuo (@zhaoshuo1223) — ONNX export shape validation and patch_size fixes
- Sven Goluza (@svengoluza) — ONNX export dynamic batch fix
- Jirka Borovec (@Borda) (LinkedIn) — shape inference, torch.device support, release coordination
Full changelog: https://github.com/roboflow/rf-detr/compare/1.6.1...1.6.2