From 3b14816eb2a3a1370d2cec0b8bc04372f7a8b002 Mon Sep 17 00:00:00 2001 From: Aditya Dandwate <96363931+AD-lite24@users.noreply.github.com> Date: Mon, 19 Aug 2024 00:38:36 +0530 Subject: [PATCH] Fix YOLOv8 C++ Example model input size (#15665) Co-authored-by: Glenn Jocher --- examples/YOLOv8-CPP-Inference/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/YOLOv8-CPP-Inference/main.cpp b/examples/YOLOv8-CPP-Inference/main.cpp index 6d1ba988f5..fe040c8634 100644 --- a/examples/YOLOv8-CPP-Inference/main.cpp +++ b/examples/YOLOv8-CPP-Inference/main.cpp @@ -24,7 +24,7 @@ int main(int argc, char **argv) // // Note that in this example the classes are hard-coded and 'classes.txt' is a place holder. - Inference inf(projectBasePath + "/yolov8s.onnx", cv::Size(640, 480), "classes.txt", runOnGPU); + Inference inf(projectBasePath + "/yolov8s.onnx", cv::Size(640, 640), "classes.txt", runOnGPU); std::vector imageNames; imageNames.push_back(projectBasePath + "/ultralytics/assets/bus.jpg");