Я очень новичок в caffe. Я следовал этой ссылке: http://adilmoujahid.com/posts/2016/06/introduction-deep-learning-python-caffe/Ошибка установки модуля Caffe в Windows 10
Когда я запустил эту команду: питона create_lmdb.py, я получил следующее сообщение об ошибке:
Файл "create_lmdb.py", строка 19, в, импорт CAFFE ; ImportError: Нет модуль с именем 'кофейная'
Я попытался установить Caffe по этой ссылке: https://github.com/BVLC/caffe/tree/windows, специально следующие коды:
C:\Projects> git clone https://github.com/BVLC/caffe.git
C:\Projects> cd caffe
C:\Projects\caffe> git checkout windows
:: Edit any of the options inside build_win.cmd to suit your needs
C:\Projects\caffe> scripts\build_win.cmd
Я получил ошибку folllowing:
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Project_git/caffe/scripts/build/CMakeFiles/CMakeOutput.log".
ERROR: Configure failed
Я загрузил ниндзя, но не уверен, что с ним делать. Поэтому я попытался изменить WITH_NINJA = 1 до WITH_NINJA = 0, то я получил следующую ошибку
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: C:/Python34/python.exe (found suitable version "3.4.3", minimum required is "2.7")
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:29 (message):
Could not find url for MSVC version = 1900 and Python version = 3.4.
Call Stack (most recent call first):
CMakeLists.txt:75 (include)
-- Configuring incomplete, errors occurred!
See also C:/Project_git/caffe/scripts/build/CMakeFiles/CMakeOutput.log".
ERROR: Configure failed
Пожалуйста, дайте мне знать, что должно быть мой следующий шаг! Заранее спасибо!
вы можете скомпилировать Caffe с VS 2017 + Python 2.7 –
все еще борется. @JumabekAlikhanov Удалось ли вам? – Hamdard