Skip to content

Instantly share code, notes, and snippets.

@yampy
yampy / file0.py
Last active January 8, 2019 13:08
Keras / Tensorflowで転移学習を行う ref: https://qiita.com/yampy/items/6f1f48fee16db7888f07
import urllib.request
import zipfile
source_dir = "./tmp/trainData"
train_dir = "./dataset/trainData"
valid_dir = "./dataset/validationData"
os.makedirs("%s/dogs" % train_dir)
os.makedirs("%s/cats" % train_dir)
os.makedirs("%s/dogs" % valid_dir)
@yampy
yampy / file0.txt
Last active April 12, 2018 04:32
Keras / Tensorflowで始めるディープラーニング入門 ref: https://qiita.com/yampy/items/706d44417c433e68db0d
pip install --upgrade tensorflow
pip install keras
@yampy
yampy / file0.txt
Created September 9, 2017 16:44
Keras/Tensorflowで始めるディープラーニングの基礎 ref: http://qiita.com/yampy/items/975f28594f295702ef18
pip install --upgrade tensorflow
pip install keras
@yampy
yampy / file0.txt
Last active April 12, 2018 04:33
[備忘] 複数Githubアカウントでssh接続設定(config)を使い分ける手順 ref: https://qiita.com/yampy/items/24638156abd383e08758
cd ~/.ssh
ssh-keygen -t rsa -C {Githubメールアドレス} -f {作成する鍵の名前}
@yampy
yampy / file0.txt
Last active April 12, 2018 04:33
SSD(Keras / TensorFlow)でディープラーニングによる動画の物体検出を行う ref: https://qiita.com/yampy/items/37c607fdf77a919cda5d
$ git clone https://github.com/rykov8/ssd_keras.git
$ cd ssd_keras
@yampy
yampy / ykov8_ssd_keras.yaml
Created September 3, 2017 09:12
Anaconca env file for ykov8_ssd_keras
name: rykov8_ssd_keras
channels:
- anaconda
- defaults
dependencies:
- appnope=0.1.0=py35_0
- bleach=1.5.0=py35_0
- colorama=0.3.9=py35_0
- decorator=4.1.2=py35_0
- entrypoints=0.2.3=py35_0
@yampy
yampy / file0.txt
Last active April 12, 2018 04:33
YOLOv2(Keras / TensorFlow)でディープラーニングによる画像の物体検出を行う ref: https://qiita.com/yampy/items/7a705acf4c6899bc11c7
git clone https://github.com/allanzelener/YAD2K.git
cd yad2k
pip install numpy h5py pillow
pip install tensorflow-gpu
pip install keras