Skip to content

feat: add ONNX and TensorRT export scripts with parity testing - #1

Merged
Complexity-ML merged 2 commits into
Complexity-ML:mainfrom
IIIllllIlIlllII:feat/onnx-tensorrt-export
Aug 12, 2026
Merged

feat: add ONNX and TensorRT export scripts with parity testing#1
Complexity-ML merged 2 commits into
Complexity-ML:mainfrom
IIIllllIlIlllII:feat/onnx-tensorrt-export

Conversation

@IIIllllIlIlllII

Copy link
Copy Markdown
Contributor
  • export_onnx.py: export detector to ONNX with metadata and optional simplification
  • test_onnx_parity.py: verify numerical parity between PyTorch and ONNX outputs
  • export_tensorrt.py: build TensorRT engine with FP16 support via ModelOpt AutoCast (TRT 11.x compatible)

Tested on GTX 1660 (Turing):
ONNX parity: max_diff ~1e-6 (FP32), ~4e-3 (FP16)
TensorRT FP32: 1.40ms / 715 FPS
TensorRT FP16: 1.58ms / 635 FPS

IIIllllIlIlllII and others added 2 commits August 12, 2026 11:32
- export_onnx.py: export detector to ONNX with metadata and optional simplification
- test_onnx_parity.py: verify numerical parity between PyTorch and ONNX outputs
- export_tensorrt.py: build TensorRT engine with FP16 support via ModelOpt AutoCast (TRT 11.x compatible)

Tested on GTX 1660 (Turing):
  ONNX parity: max_diff ~1e-6 (FP32), ~4e-3 (FP16)
  TensorRT FP32: 1.40ms / 715 FPS
  TensorRT FP16: 1.58ms / 635 FPS
@Complexity-ML
Complexity-ML merged commit 3187372 into Complexity-ML:main Aug 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants