Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with YOLO-World inference #850

Open
1 of 2 tasks
tyemelya opened this issue Dec 2, 2024 · 2 comments
Open
1 of 2 tasks

Error with YOLO-World inference #850

tyemelya opened this issue Dec 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@tyemelya
Copy link

tyemelya commented Dec 2, 2024

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!
@tyemelya tyemelya added the bug Something isn't working label Dec 2, 2024
@tyemelya
Copy link
Author

tyemelya commented Dec 2, 2024

I've solved this problem by pip install inference[clip].

@PawelPeczek-Roboflow
Copy link
Collaborator

Yeah, but the good idea may be that we explicitly warn about missing deps during the import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants