使用CUDA在Windows上运行Google的DeepDream:ImportError DLL加载失败

时间:2015-08-28 10:39:34

标签: cuda ipython anaconda deep-learning deep-dream

对于深度学习项目,我试图让Google的DeepDream启动并运行。我按照此处描述的步骤进行了操作:http://thirdeyesqueegee.com/deepdream/2015/07/19/running-googles-deep-dream-on-windows-with-or-without-cuda-the-easy-way/

我的机器:

  • Windows 8.1 64位
  • 安装了Python 3.4
  • NVIDIA Geforce 9600GT
  • 已安装Anaconda windows 64位Python 2.7版
  • 由于旧显卡而安装了CUDA 6.0

我通过运行C:\ ProgramData \ NVIDIA Corporation \ CUDA Samples \ v6.0 \ bin \ win64 \ Release \ deviceQuery.exe

检查了CUDA的安装

这给出了以下输出:enter image description here 这似乎对我好吗?

我将启用了CUDA的Caffe版本和第三方插件解压缩到C:/ Anaconda目录。

然而,当我运行笔记本的第一个单元格时

# imports and basic notebook setup
from cStringIO import StringIO
import numpy as np
import scipy.ndimage as nd
import PIL.Image
from IPython.display import clear_output, Image, display
from google.protobuf import text_format

import caffe

caffe.set_device(0)
caffe.set_mode_gpu()

def showarray(a, fmt='jpeg'):
    a = np.uint8(np.clip(a, 0, 255))
    f = StringIO()
    PIL.Image.fromarray(a).save(f, fmt)
    display(Image(data=f.getvalue()))

我收到以下错误

ImportError                               Traceback (most recent call last)
<ipython-input-1-65c745005da7> in <module>()
      7 from google.protobuf import text_format
      8 
----> 9 import caffe
     10 
     11 caffe.set_device(0)

C:\Anaconda\lib\site-packages\caffe\__init__.py in <module>()
----> 1 from .pycaffe import Net, SGDSolver
      2 from ._caffe import set_mode_cpu, set_mode_gpu, set_device, Layer, get_solver
      3 from .proto.caffe_pb2 import TRAIN, TEST
      4 from .classifier import Classifier
      5 from .detector import Detector

C:\Anaconda\lib\site-packages\caffe\pycaffe.py in <module>()
     11 import numpy as np
     12 
---> 13 from ._caffe import Net, SGDSolver
     14 import caffe.io
     15 

ImportError: DLL load failed: Kan opgegeven module niet vinden.

我重启了好几次,所以这应该不是问题。 当我打印看起来正确的PYTHONPATH时,我想:

  

[“,'C:\ Anaconda \ python27.zip','C:\ Anaconda \ DLLs',   'C:\ Anaconda \ lib','C:\ Anaconda \ lib \ plat-win',   'C:\ Anaconda \ lib \ lib-tk','C:\ Anaconda',   “C:\蟒蛇\ LIB \站点包\狮身人面像-1.3.1-py2.7.egg”,   “C:\蟒蛇\ LIB \站点包\ setuptools的-17.1.1-py2.7.egg”,   “C:\蟒蛇\ LIB \站点包”,   “C:\蟒蛇\ LIB \站点包\加密-0.9.1-py2.7赢-amd64.egg”,   “C:\蟒蛇\ LIB \站点包\ win32的”,   “C:\蟒蛇\ LIB \站点包\ WIN32 \ lib中”,   “C:\蟒蛇\ LIB \站点包\ PythonWin的”,   “C:\阿纳康达\ lib中\站点包\ IPython的\扩展”]

当我查看PATH变量时,包含了CUDA Toolkit。

可能是什么问题?

0 个答案:

没有答案