Revert "Fix dynamic export with YOLO World" (#19308)
This commit is contained in:
parent
fdeb04e7bc
commit
b94dd87f9d
1 changed files with 1 additions and 1 deletions
|
|
@ -520,7 +520,7 @@ class Exporter:
|
||||||
if isinstance(self.model, SegmentationModel):
|
if isinstance(self.model, SegmentationModel):
|
||||||
dynamic["output0"] = {0: "batch", 2: "anchors"} # shape(1, 116, 8400)
|
dynamic["output0"] = {0: "batch", 2: "anchors"} # shape(1, 116, 8400)
|
||||||
dynamic["output1"] = {0: "batch", 2: "mask_height", 3: "mask_width"} # shape(1,32,160,160)
|
dynamic["output1"] = {0: "batch", 2: "mask_height", 3: "mask_width"} # shape(1,32,160,160)
|
||||||
elif isinstance(self.model, (DetectionModel, WorldModel)):
|
elif isinstance(self.model, DetectionModel):
|
||||||
dynamic["output0"] = {0: "batch", 2: "anchors"} # shape(1, 84, 8400)
|
dynamic["output0"] = {0: "batch", 2: "anchors"} # shape(1, 84, 8400)
|
||||||
if self.args.nms: # only batch size is dynamic with NMS
|
if self.args.nms: # only batch size is dynamic with NMS
|
||||||
dynamic["output0"].pop(2)
|
dynamic["output0"].pop(2)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue