Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
317 views
in Technique[技术] by (71.8m points)

" ImportError: DLL load failed: The specified procedure could not be found"- while Digit Recognition using CNN in Python using Keras

I am trying to write a simple character recolonization code using convolutional neural network in python on windows. I am following this tutorial. But somehow I am having following error message. I could not find the appropriate reason of this error. It would be helpful for me if anyone can breakdown the error with probable solution.

    Using TensorFlow backend.
    Traceback (most recent call last):
      File "C:/Users/Mahin/PycharmProjects/characterRecognization/Learning/practice.py", line 2, in <module>
        from keras.datasets import mnist
      File "C:UsersMahinPycharmProjectscharacterRecognizationvenv3.6libsite-packageskeras\__init__.py", line 3, in <module>
        from . import utils
      File "C:UsersMahinPycharmProjectscharacterRecognizationvenv3.6libsite-packageskerasutils\__init__.py", line 6, in <module>
        from . import conv_utils
      File "C:UsersMahinPycharmProjectscharacterRecognizationvenv3.6libsite-packageskerasutilsconv_utils.py", line 9, in <module>
        from .. import backend as K
      File "C:UsersMahinPycharmProjectscharacterRecognizationvenv3.6libsite-packageskerasackend\__init__.py", line 89, in <module>
        from .tensorflow_backend import *
      File "C:UsersMahinPycharmProjectscharacterRecognizationvenv3.6libsite-packageskerasackendensorflow_backend.py", line 5, in <module>
        import tensorflow as tf
      File "C:UsersMahinPycharmProjectscharacterRecognizationvenv3.6libsite-packagesensorflow\__init__.py", line 24, in <module>
        from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
      File "C:UsersMahinPycharmProjectscharacterRecognizationvenv3.6libsite-packagesensorflowpython\__init__.py", line 59, in <module>
        from tensorflow.core.framework.graph_pb2 import *
      File "C:UsersMahinPycharmProjectscharacterRecognizationvenv3.6libsite-packagesensorflowcoreframeworkgraph_pb2.py", line 6, in <module>
        from google.protobuf import descriptor as _descriptor
      File "C:UsersMahinPycharmProjectscharacterRecognizationvenv3.6libsite-packagesgoogleprotobufdescriptor.py", line 47, in <module>
        from google.protobuf.pyext import _message
    ImportError: DLL load failed: The specified procedure could not be found.
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Check if you have installed CUDA, CUDNN, added them to your PATH variable, and if you have correct versions of them for your Tensorflow version (each Tensorflow version supports only range of CUDA versions), check for example this tutorial for installation. Also, I guess you try to install it on windows (based on the DLL error), which is quite important to mention.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

Just Browsing Browsing

[3] html - How to create even cell spacing within a

1.4m articles

1.4m replys

5 comments

56.9k users

...