Skip to content

Error with YOLO-World inference #850

Open
@tyemelya

Description

@tyemelya

Search before asking

  • I have searched the Inference issues and found no similar bug report.

Bug

Hello.
When I try to reproduce an example of inference using YOLO-World model
I receive an error

File "/python3.11/site-packages/inference/models/yolo_world/yolo_world.py", line 5, in
import clip
ModuleNotFoundError: No module named 'clip'

I have installed version of inference ==0.29.0, inference-sdk ==0.29.0 in my environement

Environment

inference: 0.29.0
inference-sdk:0.29.0
python: 3.11

Minimal Reproducible Example

import cv2
import supervision as sv

from inference.models.yolo_world.yolo_world import YOLOWorld

image = cv2.imread("image.jpeg")

model = YOLOWorld(model_id="yolo_world/l")
classes = ["person", "backpack", "dog", "eye", "nose", "ear", "tongue"]
results = model.infer("image.jpeg", text=classes, confidence=0.03)[0]

detections = sv.Detections.from_inference(results)

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions