-
Notifications
You must be signed in to change notification settings - Fork 123
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
Add YOLO-World model documentation #276
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shall also include examples of running the requests against HTTP API with inference_sdk
@PawelPeczek-Roboflow Do you have code to share for those methods? |
result = client.infer_from_yolo_world(
inference_input=["https://media.istockphoto.com/id/1417882544/photo/large-group-of-cats-and-dogs-looking-at-the-camera-on-blue-background.jpg?s=612x612&w=0&k=20&c=kGKANSIFdNfhBJMipyuaKU4BcVE1oELWev9lF2ickE0="]*3,
class_names=["dog", "cat"],
model_version="m",
confidence=0.1,
) there is also async version result = await client.infer_from_yolo_world_async(
inference_input=["https://media.istockphoto.com/id/1417882544/photo/large-group-of-cats-and-dogs-looking-at-the-camera-on-blue-background.jpg?s=612x612&w=0&k=20&c=kGKANSIFdNfhBJMipyuaKU4BcVE1oELWev9lF2ickE0="]*3,
class_names=["dog", "cat"],
model_version="m",
confidence=0.1,
) and if one |
this is example for batch requests |
one may also give np array, PIL or single file path / url - as per standard way of specifying images in sdk |
docs/foundation/yolo_world.md
Outdated
confidence=0.1, | ||
) | ||
|
||
detections = sv.Detections.from_inference(results) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
afaik we return list of dictionaries, so probably results[0] is appropriate here
from inference_sdk import InferenceHTTPClient | ||
|
||
client = InferenceHTTPClient( | ||
api_url="http://127.0.0.1:9001", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we shall probably instruct users to run server with inference-cli and probably give a hint about pip install ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but please add changes as suggested
I have made the requested changes. Can you review again? (I can't merge without the last commit being reviewed and approved) |
Description
This PR adds instructions on how to use YOLO-World to the Inference documentation.
Type of change
How has this change been tested, please provide a testcase or example of how you tested the change?
You can test this project by navigating to the Models tab, click "YOLO World", and ensure the page opens properly.
Any specific deployment considerations
N/A
Docs
N/A