工大祭向けの顔画像カテゴリ判別デモスクリプト
詳細はhttp://qiita.com/Leben4010/items/aacd5d1fec600f3af569
- ImageMagick
macならば http://cactuslab.com/imagemagick/ など - OpenCV (ver 1.0)
pip install cv2
- pillow (ver 2.9.7)
pip install pillow
- Chainer(ver 1.3.2)
pip install chainer==1.3.2
- matplotlib (ver 1.4.3)
pip install matplotlib
git clone https://github.com/Arudori5001/TokyoTechFes2015.git
cd TokyoTechFes2015
unzip dataset.zip
pip install ...
python bbteam_pred.py (予測したい画像のパス)
dataset
フォルダ内に判別したいクラスの名前のフォルダをそれぞれ作成する- 作成したフォルダにそれぞれのクラスの画像を入れる
python Learning.py (学習に使うデータ数) (テストに使うデータ数)
ちなみにdataset.zip
を解凍したものは全部で680個の画像が入っているのでpython Learning.py 520 130
くらいが良いかもしれない.