Force simplify=True for OBB export with NMS (#23580)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Mohammed Yasin 2026-02-09 05:07:19 +08:00 committed by GitHub
parent 0b525e40ac
commit b5d9bfd49b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -705,6 +705,7 @@ class Exporter:
dynamic["output0"].pop(2)
if self.args.nms and self.model.task == "obb":
self.args.opset = opset # for NMSModel
self.args.simplify = True # fix OBB runtime error related to topk
with arange_patch(self.args):
torch2onnx(