cancel
Showing results for 
Search instead for 
Did you mean: 

XCUBE-AI Keras model Analysis/Validation error.

MQabb.1
Associate

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?

3 REPLIES 3
fauvarque.daniel
ST Employee

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.

Hi Daniel,

​T​hanks for your reply.

Y​es I'm using Windows 10.

fauvarque.daniel
ST Employee

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.