Skip to content

Commit

Permalink
[yolov8] standardize to export models as 'model.onnx' (#1867) (#1868)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfineran committed Nov 29, 2023
1 parent 8b5d66e commit c052e27
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/sparseml/yolov8/trainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,12 +727,8 @@ def export(self, **kwargs):
else manager
)

if args.get("name") and args["name"]:
name = args["name"]
else:
name = f"{type(self.model).__name__}.onnx"

save_dir = args["save_dir"]
name = "model.onnx" # save 'model.onnx' in deployment directory
if not os.path.exists(save_dir):
os.mkdir(save_dir)

Expand Down

0 comments on commit c052e27

Please sign in to comment.