首頁>Club>
6
回覆列表
  • 1 # 使用者3335994091782

    首先修改配置檔案,回到caffe目錄cd~/caffecpMakefile.config.exampleMakefile.configgeditMakefile.config這裡僅需修改兩處:i)使用cuDNN#USE_CUDNN:=1這裡去掉#,取消註釋為USE_CUDNN:=1ii)修改python包目錄,這句話PYTHON_INCLUDE:=/usr/include/python2.7\/usr/lib/python2.7/dist-packages/numpy/core/include改為PYTHON_INCLUDE:=/usr/include/python2.7\/usr/local/lib/python2.7/dist-packages/numpy/core/include因為新安裝的python包目錄在這裡:/usr/local/lib/python2.7/dist-packages/接下來就好辦了,直接makemakeall-j4maketestmakeruntestmakepycaffe這時候cd到caffe下的python目錄,試試caffe的pythonwrapper安裝好沒有:pythonimportcaffe如果不報錯,那就說明安裝好了。

  • 中秋節和大豐收的關聯?
  • 走走停停的旅行心情語錄?