Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6574 Discussions

Object Detection CPP sample failed to compile yolo v8 model

ChrisChang
Beginner
7,344 Views

I'm trying to use the Object Detection CPP sample from Model Zoo.

(OpenVino ver. 2025.2)

(see https://github.com/openvinotoolkit/open_model_zoo/tree/master/demos/object_detection_demo/cpp

)

It works well for loading the models in the models.lst.

 

Now I got a fine-tuned AI model based on Yolo V8, it works well with my own Python script.  

And I'd like to to do this with CPP sample code (https://github.com/openvinotoolkit/open_model_zoo/tree/master/demos/object_detection_demo/cpp).

 

But I encounter the exception while thr code ran into the function

"logBasicModelInfo" in "common.hpp",

The exception occurs at 

"const std::string name = output.get_any_name();"

 

Looks some kinds of NULL when loading info from ov::Output.

 

What can I do for adding the required information into model?

Or should I modify the OpenVino library?

 

 

0 Kudos
1 Solution
Zulkifli_Intel
Moderator
5,691 Views

Hi ChrisChang.

 

To integrate a custom model with Open Model Zoo Demos, you need to modify the demo's source code to fit your model. It is better to use a minimal C++ example to start. Therefore, I suggest you refer to the YOLOv8 OpenVINO Inference in C++

 

 

Regards,

Zul


View solution in original post

0 Kudos
6 Replies
Zulkifli_Intel
Moderator
7,249 Views

Hi ChrisChang,

Thank you for reaching out to us.

 

Could you please share your YOLOv8 model so I can take a look at the issue further?

 

 

Regards,

Zul


0 Kudos
ChrisChang
Beginner
7,014 Views

Hi Zul:

Thaks for your reply.

Pls find the attachment.

0 Kudos
ChrisChang
Beginner
5,725 Views

Hi:

Any update?

0 Kudos
Zulkifli_Intel
Moderator
5,692 Views

Hi ChrisChang.

 

To integrate a custom model with Open Model Zoo Demos, you need to modify the demo's source code to fit your model. It is better to use a minimal C++ example to start. Therefore, I suggest you refer to the YOLOv8 OpenVINO Inference in C++

 

 

Regards,

Zul


0 Kudos
ChrisChang
Beginner
5,395 Views

Thanks, it's work for me.

0 Kudos
Zulkifli_Intel
Moderator
5,306 Views

This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.


Reply