We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
inference: 0.29.0 inference-sdk:0.29.0 python: 3.11
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)
No response
The text was updated successfully, but these errors were encountered:
I've solved this problem by pip install inference[clip].
Sorry, something went wrong.
Yeah, but the good idea may be that we explicitly warn about missing deps during the import
No branches or pull requests
Search before asking
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?
The text was updated successfully, but these errors were encountered: