Skip To Main Content
Support Knowledge Base

How to Obtain Bounding Boxes from YOLOv8 Output Tensor Results?

Content Type: Troubleshooting   |   Article ID: 000098123   |   Last Reviewed: 03/21/2024

Description

  • Deployed YOLO model using Open Model Server (OVMS)
  • Ran the following Python script:
    import numpy as np
    from classes import imagenet_classes
    from ovmsclient import make_grpc_client

    client = make_grpc_client("localhost:9000")

    open("zebra.jpeg", "rb") as f: img = f.read()

  • Obtained the following output results:
    (1, 84, 8400)
  • Unable to convert the output results into bounding boxes.

Resolution

Run the YOLOv8-OpenCV*-ONNX*-Python* script which loads an ONNX format model and converts the results into bounding boxes with associated scores.

Related Products

This article applies to 1 products.