Intel® Edge Software Hub
Get answers from community peers to your questions about building Edge Software Hub solutions for edge compute node.
Announcements
Welcome to the Intel Community! If you like the answer to your question, please mark it as 'Accepted Solution' to help others.

The Edge Software Vision Package for Red Hat Enterprise Linux is now available here.

Learn more about developing on Intel® Hardware and Software here.
407 Discussions

Industrial surface defect detection: Failed to install Model optimisation

Nitish_
Novice
923 Views

Screenshot from 2022-10-20 00-09-03.png

 

Hello everyone,

I  am trying the run the Industrial surface defect reference implementation on my Ubuntu 18.04. Unfortunately, model optimizer is not installing and giving me error. Please check the screenshot.

I adopted the same process as given here:  https://www.intel.com/content/www/us/en/developer/articles/reference-implementation/industrial-surface-defect-detection.html

 

Will appreciate your suggestion/recommendation/insights.

0 Kudos
1 Solution
JesusE_Intel
Moderator
868 Views

Hi Nitish_,


The issue seems to be related to OpenCV (see below), are you running Ubuntu 18.04 in a virtual environment? If so, please try to install it on a system running Ubuntu 18.04 natively.



******************************************************************

* FATAL ERROR:                          *

* This OpenCV build doesn't support current CPU/HW configuration *

*                                *

* Use OPENCV_DUMP_CONFIG=1 environment variable for details   *

******************************************************************


Required baseline features:

  ID= 2 (SSE) - OK

  ID= 3 (SSE2) - OK

  ID= 4 (SSE3) - OK

  ID= 5 (SSSE3) - OK

  ID= 6 (SSE4.1) - OK

  ID= 8 (POPCNT) - NOT AVAILABLE

  ID= 7 (SSE4.2) - OK

terminate called after throwing an instance of 'cv::Exception'

 what(): OpenCV(4.5.1-openvino) ../opencv/modules/core/src/system.cpp:626: error: (-215:Assertion failed) Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup. in function 'initialize'


Ref. Can't solve OpenCV build error due to no POPCNT support on CPU · Issue #18932 · opencv/opencv (github.com)


Regards,

Jesus


View solution in original post

0 Kudos
7 Replies
JesusE_Intel
Moderator
905 Views

Hi Nitish_,


Thank you for reporting, I was able to reproduce the issue from my side. Looking at my logs, OpenVINO Model Optimizer failed to install after onnx was not able to install. As a workaround, could you try to manually install onnx and run the ./edgesoftware install again?


pip3 install onnx==1.7.0


Regards,

Jesus


0 Kudos
Nitish_
Novice
900 Views

Hi Jesus,

 

Despite installling onnx , the same problem persists. Could you pls let me know the command to  view logs that may help to resolve this issue? Model optimiser is not going beyond 66%.

 

Regards,

Nitish

 

Screenshot from 2022-10-20 11-50-06.png

.

0 Kudos
JesusE_Intel
Moderator
895 Views

Hi Nitish,


Could you share your logs with me? Logs can be found in the /var/log/esb-cli/<reference_implenetation> directory.


Regards,

Jesus


0 Kudos
Nitish_
Novice
889 Views

Hi Jesus,

Please find the install.log file.

Regards,

Nitish

0 Kudos
JesusE_Intel
Moderator
869 Views

Hi Nitish_,


The issue seems to be related to OpenCV (see below), are you running Ubuntu 18.04 in a virtual environment? If so, please try to install it on a system running Ubuntu 18.04 natively.



******************************************************************

* FATAL ERROR:                          *

* This OpenCV build doesn't support current CPU/HW configuration *

*                                *

* Use OPENCV_DUMP_CONFIG=1 environment variable for details   *

******************************************************************


Required baseline features:

  ID= 2 (SSE) - OK

  ID= 3 (SSE2) - OK

  ID= 4 (SSE3) - OK

  ID= 5 (SSSE3) - OK

  ID= 6 (SSE4.1) - OK

  ID= 8 (POPCNT) - NOT AVAILABLE

  ID= 7 (SSE4.2) - OK

terminate called after throwing an instance of 'cv::Exception'

 what(): OpenCV(4.5.1-openvino) ../opencv/modules/core/src/system.cpp:626: error: (-215:Assertion failed) Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup. in function 'initialize'


Ref. Can't solve OpenCV build error due to no POPCNT support on CPU · Issue #18932 · opencv/opencv (github.com)


Regards,

Jesus


0 Kudos
Nitish_
Novice
861 Views

Hi Jesus,

 

Thank you :). The issue got resolved by following reference details. 

Ref: https://www.virtualbox.org/ticket/20005

 

Regards,

Nitish

 

0 Kudos
JesusE_Intel
Moderator
855 Views

Hi Nitish,


You're welcome! If you need any additional information, please submit a new question as this thread will no longer be monitored.


Regards,

Jesus


0 Kudos
Reply