PINTO0309 / OpenVINO-YoloV3

YoloV3/tiny-YoloV3+RaspberryPi3/Ubuntu LaptopPC+NCS/NCS2+USB Camera+Python+OpenVINO
https://qiita.com/PINTO
Apache License 2.0
538 stars 167 forks source link

./build_samples.sh error: comparison between signed and unsigned integer expressions #39

Open oxidation99 opened 5 years ago

oxidation99 commented 5 years ago

My device is LaptopPC Ubuntu16.04 64bit Process: intel core i7-4650U Graphics: intel Haswell Mobile intel Movidius Neural Compute Stick V1
[Required] Details of the work you did before the problem occurred:

I need to run object detection yolov3 async. I follow prepare the environment and recompile have a error message.

[Required] Error message:

/opt/intel/openvino_2019.1.133/deployment_tools/inference_engine/samples/object_detection_demo_yolov3_async/main.cpp:420:35: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] for (int i = 0; i < objects.size(); ++i) {

Selection_006

How can i fix this? Thank you

PINTO0309 commented 5 years ago
for (unsigned int i = 0; i < objects.size(); ++i) {
fcr3 commented 5 years ago

What about the type of label?

Error: /opt/intel/openvino_2019.1.144/deployment_tools/inference_engine/samples/object_detection_demo_yolov3_async/main.cpp:449:40: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] (label < labels.size() ? labels[label] : std::string("label #") + std::to_string(label))