Commit 1bc58f6
Build
- Fixed TensorRT-safe ONNX export for Transformer `spatial_shapes`, avoiding ScatterND in shape-tensor computation.
- Updated ONNX export behavior to preserve dynamic-batch compatibility across detection, segmentation, and keypoint models.
- Improved Transformer export validation with coverage for dynamic batches, single-level feature maps, non-square spatial shapes, and PyTorch API compatibility.
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>spatial_shapes from symbolic Shape ops for TensorRT-safe ONNX export (roboflow#1155)1 parent 70d968e commit 1bc58f6
3 files changed
Lines changed: 422 additions & 6 deletions
File tree
- src/rfdetr/models
- tests/models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | 287 | | |
292 | 288 | | |
293 | 289 | | |
294 | 290 | | |
295 | | - | |
296 | | - | |
297 | 291 | | |
298 | 292 | | |
299 | 293 | | |
| |||
309 | 303 | | |
310 | 304 | | |
311 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
312 | 318 | | |
313 | 319 | | |
314 | 320 | | |
| |||
0 commit comments