ディープラーニング環境構築
chainerCVのdemoモデルはフェレットを学習していなかったようです。
おうちでぼちぼちDeepLearning(DL)環境を構築しています。
環境はこんな感じ
・DL用サーバ
windows10 pro
geforce 650Ti
とりあえず嫁のwindowsマシンなのでLinuxは諦めてwindows上でGPUを使ったDLができる環境にします。
windows版anaconda(pythonの統合パッケージみたいな)をいれて、追加でDLの下記フレームワークをインストールしました。
・chainer
・tensorflow
参考サイトはこちら。
cuda
https://developer.nvidia.com/cuda-gpus
GTX650 Tiは3.0ぎりぎりセーフ
☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
「chainer windows」
chainerをインストールする参考サイト
http://qiita.com/samacoba/items/7fa5883d7d715aeabd53
(chainerインストールメモ( windows10 python3.5 cuda8.0 ))
・ Patch 2 (Released Jun 26, 2017) はインストールしないようにした。
「chainer windows」
http://nixeneko.hatenablog.com/entry/2017/06/24/101542
(WindowsでChainerCVのサンプルを動かしFaster R-CNNをトレーニングしてみる)
windowsでの時間計測
http://sgry.jp/blog/2016/09/18/3812/
powershellからanacondaを使用する。
http://qiita.com/ihlbbfbtr/items/097553ccd51543ee31fb
powershellのポリシーの変更
http://www.atmarkit.co.jp/ait/articles/0805/16/news139.html
measure-command { python train_mnist.py -g 0}
cupyをinstallする必要があった。
https://github.com/chainer/chainer#installation
pip install cupy
「gpu 使用状況」
http://qiita.com/samacoba/items/368d67f2d7d4e11abdf7
☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
「tensorflow windows cuda」
http://h-sao.com/blog/2017/04/10/how-to-install-tensorflow-gpu-on-windows/
テンソルフローのインストール手順with anaconda
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/docs_src/install/install_windows.md
import時にエラー。。。
「\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper」
https://github.com/tensorflow/tensorflow/issues/6055
↓が足りなかったらしい?
https://www.microsoft.com/ja-jp/download/confirmation.aspx?id=53587
↓
動いた!
helloworld
http://dev.classmethod.jp/machine-learning/tensorflow-hello-world/
☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ ☆☆☆☆
両方ともちゃんと動いて良かったです。
ではでは(・㉦・) ノシ