用caffe 來做夢吧~~

網路上湊巧看到 Google Deep dream的程式

看看說明 用caffe 寫的!!! 剛好最近在學

好奇心驅使之下就下載去玩玩了

 

首先clone 下原始檔吧

git clone https://github.com/JoBergs/deepdream

 

他用的model 原來就是 caffe 內建的

我也是到現在才知道裡面有 google net阿

 

剛開始可能沒有 caffemodel

經過Linux 的身經百戰 難不倒小編我的拉~~

打開readme.md

裡面就有提供網址下載囉

用wget 指令下載~~

wget http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemodel

再來就是用 jupyter notebook 打開dream.ipynb囉

可以用小編介紹的 cloud9 跑喔

裡面有說明

一行一行執行就可以做夢囉~~

下載完成後的資料

附上圖:

 

還可以引導做夢喔:

小編隨便弄張花當底圖引導

 

在 樹梅派中 作夢:

 

這個就是作夢後的結果囉~

 

 

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments