diff --git a/inference/models/yolo_world/yolo_world.py b/inference/models/yolo_world/yolo_world.py index a5d790440..f300b7515 100644 --- a/inference/models/yolo_world/yolo_world.py +++ b/inference/models/yolo_world/yolo_world.py @@ -5,7 +5,7 @@ import clip import numpy as np import torch -from ultralytics import YOLO +from ultralytics import YOLO, settings from inference.core import logger from inference.core.cache import cache @@ -30,6 +30,10 @@ EMBEDDINGS_EXPIRE_TIMEOUT = 1800 # 30 min +settings.update({"sync": False}) +settings.reset() + + class YOLOWorld(RoboflowCoreModel): """YOLO-World class for zero-shot object detection.