| サイト構成 | 連絡先,業績など | コンピュータ実習 | データの扱い | コンピュータ活用 | 教材(公開) | サポートページ |
目次
caffe の利用条件などは、利用者が確認すること。
謝辞:このWebページで紹介する caffe ソフトウエアの作者に感謝します
※ Pythonとして Anaconda をインストールして使うこともできる.
※ Python のプログラム作成には、PyCharmなどが便利である.
以下,Windows に Python, git, cmake をインストール済みであるものとして説明を続ける.
CUDA と連携させたいときは、前もって、 NVIDIA グラフィックスカード・ドライバ, NVIDIA CUDA ツールキットをインストールしておく.
「別のページ」で説明している
Windows でのインストール手順は,「別のページ」で説明している
Windows でのインストール手順は,「別のページ」で説明している.
Windows のメニューで「Visual Studio 2019」の下の「x64 Native Tools コマンドプロンプト (Command Prompt)」(あるいは類似名のもの)を選ぶ
※ 「x64 Native Tools コマンドプロンプト (Command Prompt)」がないときは, MSVC ビルドツールのインストールを行う. MSVC ビルドツールのインストール手順は,「別のページ」で説明している.
x64 Native Tools コマンドプロンプトで,次のように操作
mkdir C:\tools cd C:\tools rmdir /s /q caffe-builder cd C:\tools git clone https://github.com/willyd/caffe-builder
cd C:\tools cd caffe-builder set WITH_NINJA=0 set PYTHON_VERSION=3 rmdir /s /q build mkdir build cd build del CMakeCache.txt "C:\Program Files\Cmake\bin\cmake" -G "Visual Studio 16 2019" -A Win64 -T host=x64 ^ -DCMAKE_BUILD_TYPE=RELEASE ^ -C C:\toolc\caffe-builder\build\libraries\caffe-build-config.cmake ..
mkdir C:\tools cd C:\tools rmdir /s /q caffe
cd C:\tools git clone https://github.com/BVLC/caffe.git
https://github.com/BVLC/caffe/tree/windowsの記載に従う
cd c:\tools cd caffe git checkout windows rmdir /s /q build mkdir build cd build del CMakeCache.txt "C:\Program Files\Cmake\bin\cmake" -G "Visual Studio 15 2017 Win64" -T host=x64 ^ -DCMAKE_BUILD_TYPE=RELEASE ^ ..
※ 下図のとおりになるとは限らない.
※ うまくいっていない場合は、設定を変えてやり直す.
次のように設定する
C:\tools\CMake-caffe-1.10.4\caffe-1.10.4
次のように追加する
C:\tools\CMake-caffe-1.10.4\build\bin\Release