2015年7月14日火曜日

Deep Learning: Test of "Deep Dream"

Success !

Test of "Deep Dream"

$ sudo yum install nginx
$ git clone https://github.com/VISIONAI/clouddream.git
$ sudo systemctl stop httpd
$ cd clouddream
$ sudo ./start.sh
$ sudo ./stop.sh
$ sudo ./enter.sh

root@429d26ef5fb0:/# cd /opt/deepdream
root@429d26ef5fb0:/# python deepdream.py
.....
.....
3 2 inception_4c/output (300, 400, 3)
3 3 inception_4c/output (300, 400, 3)
3 4 inception_4c/output (300, 400, 3)
3 5 inception_4c/output (300, 400, 3)
3 6 inception_4c/output (300, 400, 3)
3 7 inception_4c/output (300, 400, 3)
root@429d26ef5fb0:/# exit
$ sudo ./start.sh

show http://hhoshina.info/

before

after


2015年7月12日日曜日

Docker : Docker for mac

*** init
$ boot2docker delete
$ boot2docker init
$ boot2docker up
$ boot2docker ssh

*** docker
$ sudo docker pull cordea/pycaffe
$ docker images
$ docker run -it cordea/pycaffe:latest bash
ubuntu#
ctrl+p ctrl+q

docker@...$ docker ps
CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS              PORTS               NAMES

c003803c258f        cordea/pycaffe:latest   "bash"              6 minutes ago       Up 6 minutes  

docker@...$ docker attach c003803c258f

*** docker exit and restart
ubuntu# exit
docker@...$ exit
docker@...$ docker ps -a
CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS                     PORTS               NAMES               SIZE
f650703ece0b        cordea/pycaffe          "bash"              2 hours ago         Exited (0) 5 seconds ago                       hungry_darwin       37.7 MB (virtual 3.159 GB)

c003803c258f        cordea/pycaffe:latest   "bash"              2 hours ago         Exited (0) 2 hours ago                         hungry_mestorf      374 B (virtual 3.122 GB)

docker@...$ docker commit -m "hhoshina-pyaffe" f650703ece0b hhoshina-pycaffe 1.1

$ boot2docker ssh
$ docker images

Deep Learning : caffe

Test of Deep Learning Software .

$ sudo docker pull cordea/pycaffe
$ sudo docker images
$ sudo docker run -it cordea/pycaffe:latest bash

# cd /home/pycaffe/caffe
# make runtest
# make distribute
# pip install -r /home/pycaffe/caffe/distribute/python/requirements.txt
# su pycaffe
pycaffe@f650703ece0b:~/caffe$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import caffe
libdc1394 error: Failed to initialize libdc1394




fd-find

 $ sudo apt install fd-find $ fdfind 石