Real-Time Open-Vocabulary Object Detections
YOLOWorld
class encapsulates the functionality of the YOLO-World models, providing methods for loading the model, detecting objects based on textual descriptions, and managing resources.s
models are less accurate and faster will the l
models are more accurate but slower.Valid options include "yolov8s-worldv2"
, "yolov8m-worldv2"
, "yolov8l-worldv2"
, "yolov8s-world"
, "yolov8m-world"
, and "yolov8l-world"
.detect(image: Union[np.ndarray, Image.Image], classes: List[str])-> Detections
:image
based on the classes
described in text.
Returns a BoundingBox Detections
object.Note how the model did not filter out the butterfly kite, but instead just selected all the kites