Error with YOLO-World inference
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.5k
- Forks
- 319
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 133
Description
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!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the YOLO-World import in inference/models/yolo_world/yolo_world.py and reproduce the reported ModuleNotFoundError using the provided Python example and package versions. Done means the YOLOWorld example can import its dependencies and complete inference without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100