Skip to main content
MQabb.1
Associate
May 3, 2020
Question

XCUBE-AI Keras model Analysis/Validation error.

  • May 3, 2020
  • 2 replies
  • 1097 views

I have encountered error while executing validation on my first Keras model using XCUBE.AI extension. The error message below,

----------------------------------------------------------------------------------------------------------------------------------

Analyzing model 

Neural Network Tools for STM32 v1.2.0 (AI tools v5.0.0) 

TOOL ERROR: Traceback (most recent call last): 

  File "C:\Users\moham\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\5.0.0\Utilities\windows\tensorflow_core\python\pywrap_tensorflow.py", line 58, in <module> 

    from tensorflow.python.pywrap_tensorflow_internal import * 

  File "C:\Users\moham\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\5.0.0\Utilities\windows\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in <module> 

    _pywrap_tensorflow_internal = swig_import_helper() 

  File "C:\Users\moham\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\5.0.0\Utilities\windows\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper 

    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) 

  File "imp.py", line 242, in load_module 

  File "imp.py", line 342, in load_dynamic 

ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed. 

Failed to load the native TensorFlow runtime. 

See https://www.tensorflow.org/install/errors 

for some common reasons and solutions.  Include the entire stack trace 

above this error message when asking for help.

----------------------------------------------------------------------------------------------------------------------------------

I'm using

STMCubeMx version 5.6.1

XCUBE.AI version 5.0.0

I installed "microsoft Visual C++ 2015,2017,2019 Redistributable Update 3" as recommended in another thread.

Could you please support as I'm stuck with this error for 3 days now?

    This topic has been closed for replies.

    2 replies

    fauvarque.daniel
    ST Employee
    May 4, 2020

    Are you on Windows 10 ? our generation machine is on Windows 10 and we don't support Windows 7 anymore.

    Regards

    Daniel

    ​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
    MQabb.1
    MQabb.1Author
    Associate
    May 4, 2020

    Hi Daniel,

    ​T​hanks for your reply.

    Y​es I'm using Windows 10.

    fauvarque.daniel
    ST Employee
    May 5, 2020

    According to this thread it is as you said a question of C++ redistributable version

    In one comment is says: " please uninstall the latest Microsoft Visual C++ Redistributable for Visual Studio version if you install 2019 and before that

    download Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019 depending on your system either x64 or x86 on this website

    https://support.microsoft.com/en-my/help/2977003/the-latest-supported-visual-c-downloads"

    I wonder if it could also be some non English Windows issues, is your Windows in English ?

    Sorry for not being of better help I have never seen this issue on our machines

    Regards

    Daniel

    ​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.