From 1784300ef71fde63991f2e423bd68bea71db3dc8 Mon Sep 17 00:00:00 2001 From: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com> Date: Sat, 14 Jun 2025 17:17:06 +0600 Subject: [PATCH] `ultralytics 8.3.155` Fix YOLO-World `set_classes()` error after prediction (#21051) Signed-off-by: Glenn Jocher Co-authored-by: Glenn Jocher --- ultralytics/__init__.py | 2 +- ultralytics/nn/tasks.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ultralytics/__init__.py b/ultralytics/__init__.py index 81cb508f..297dafa5 100644 --- a/ultralytics/__init__.py +++ b/ultralytics/__init__.py @@ -1,6 +1,6 @@ # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license -__version__ = "8.3.154" +__version__ = "8.3.155" import os diff --git a/ultralytics/nn/tasks.py b/ultralytics/nn/tasks.py index c19f939c..7430c099 100644 --- a/ultralytics/nn/tasks.py +++ b/ultralytics/nn/tasks.py @@ -880,7 +880,6 @@ class WorldModel(DetectionModel): self.txt_feats = self.get_text_pe(text, batch=batch, cache_clip_model=cache_clip_model) self.model[-1].nc = len(text) - @smart_inference_mode() def get_text_pe(self, text, batch=80, cache_clip_model=True): """ Set classes in advance so that model could do offline-inference without clip model.