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

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Aditya Dandwate 2024-08-19 00:38:36 +05:30 committed by GitHub
parent 443db3aa00
commit 3b14816eb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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");