Force simplify=True for OBB export with NMS (#23580)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
0b525e40ac
commit
b5d9bfd49b
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user