Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 721 Bytes

File metadata and controls

23 lines (19 loc) · 721 Bytes

YOLO_CPP_DEMO

This is a C++ demo for running YOLO object detection using LibTorch.

This loads the best.torchscript model(which is from best.pt).

It outputs the detected bounding boxes as "output.jpg" in the current directory.

How to use

  1. Clone this repository and navigate to the project directory.
  2. Make sure to have OpenCV installed in the system
  3. Download libtorch from the official PyTorch website and extract it at the top directory of this project.
  4. Build the project using CMake:
    mkdir build
    cd build
    cmake ..
    make
  5. Run the demo:
    ./yolov8_libtorch_inference