Fix YOLOv8 C++ Example model input size (#15665)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/15675/head
Aditya Dandwate 3 months ago committed by GitHub
parent 443db3aa00
commit 3b14816eb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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. // 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<std::string> imageNames; std::vector<std::string> imageNames;
imageNames.push_back(projectBasePath + "/ultralytics/assets/bus.jpg"); imageNames.push_back(projectBasePath + "/ultralytics/assets/bus.jpg");

Loading…
Cancel
Save