From cfcae388f2dabe96505ee33c78992e35143fc0cf Mon Sep 17 00:00:00 2001 From: Yonghye Kwon Date: Thu, 13 Jul 2023 02:05:06 +0900 Subject: [PATCH] Add `datetime` to exported model metadata (#3694) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- ultralytics/yolo/engine/exporter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ultralytics/yolo/engine/exporter.py b/ultralytics/yolo/engine/exporter.py index 8401bbf..6d70a2c 100644 --- a/ultralytics/yolo/engine/exporter.py +++ b/ultralytics/yolo/engine/exporter.py @@ -55,6 +55,7 @@ import subprocess import time import warnings from copy import deepcopy +from datetime import datetime from pathlib import Path import torch @@ -219,6 +220,7 @@ class Exporter: 'description': description, 'author': 'Ultralytics', 'license': 'AGPL-3.0 https://ultralytics.com/license', + 'date': datetime.now().isoformat(), 'version': __version__, 'stride': int(max(model.stride)), 'task': model.task,