From 0e465175fdf121695bda5c5c350fe1e9fabc3abe Mon Sep 17 00:00:00 2001 From: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com> Date: Mon, 30 Dec 2024 22:53:07 +0800 Subject: [PATCH] Delete `clip_model` to avoid errors on export (#18445) Signed-off-by: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com> Co-authored-by: Laughing-q <1185102784@qq.com> Co-authored-by: Glenn Jocher --- ultralytics/engine/exporter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ultralytics/engine/exporter.py b/ultralytics/engine/exporter.py index 865d75f7..9e83dc3c 100644 --- a/ultralytics/engine/exporter.py +++ b/ultralytics/engine/exporter.py @@ -285,6 +285,7 @@ class Exporter: "(torchscript, onnx, openvino, engine, coreml) formats. " "See https://docs.ultralytics.com/models/yolo-world for details." ) + model.clip_model = None # openvino int8 export error: https://github.com/ultralytics/ultralytics/pull/18445 if self.args.int8 and not self.args.data: self.args.data = DEFAULT_CFG.data or TASK2DATA[getattr(model, "task", "detect")] # assign default data LOGGER.warning(