Skip to content

ONNX models of YOLO-World (an open-vocabulary object detection).

License

Notifications You must be signed in to change notification settings

wkentaro/yolo-world-onnx

Repository files navigation

yolo-world-onnx

Installation | Usage | License

ONNX Models

Download

Installation

Option 1: Install all for PyTorch inference, export, and ONNX inference:

make install

Option 2: Install only for ONNX inference:

make install_for_onnx

Usage

Inference with PyTorch

Run inference using the PyTorch pre-trained model:

./infer_pytorch.py
./infer_pytorch.py --class-names person,shoes
./infer_pytorch.py --image-file data/images/dogs.jpg \
                   --class-names dog,eye,nose,ear,tail \
                   --iou-threshold 0.5 \
                   --score-threshold 0.09

Export ONNX

Export YOLO-World and NMS models to ONNX format:

./export_onnx.py
./export_nms_onnx.py

Inference with ONNX

Run inference using the exported ONNX model:

./infer_onnx.py
./infer_onnx.py --class-names person,shoes
./infer_onnx.py --image-file data/images/dogs.jpg \
                --class-names dog,eye,nose,ear,tail \
                --iou-threshold 0.5 \
                --score-threshold 0.09

Acknowledgements

YOLO-World is an open-vocabulary object detection model published in CVPR2024.

Check out the following resources for more information: Paper, Code

License

GPLv3