You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# NOTE: this is required only if you will compile the python interface.# We need to be able to find Python.h and numpy/arrayobject.h.
PYTHON_INCLUDE := /usr/include/python2.7
如果是通过Homebrew安装的numpy,需要添加numpy路径,否则会报错:
python/caffe/_caffe.cpp:10:10: fatal error: 'numpy/arrayobject.h' file not found
# Add this to PYTHON_INCLUDE in Makefile.config
PYTHON_INCLUDE := /usr/include/python2.7 \
/usr/local/Cellar/numpy/1.9.2_1/lib/python2.7/site-packages/numpy/core/include
Hi. I encountered a problem about the installation of protobuf.
I typed 'brew install —build-from-source —with-python —fresh -vd protobuf'
But, Homebrew asked me to type interactive mode. I don't know what it is. Could you please help me?
Deepdream是最近Google开源的一个很好玩的项目,让我们可以看到利用深度学习对图片进行分类时,相邻神经网络层次之间的信息传递。Deepdream是基于Caffe框架,因此主要是安装Caffe的依赖环境和Caffe框架。
1. 下载 Caffe
2. 安装 Caffe 依赖
3. Setup for Python
官方推荐使用Anaconda,包含了大部分可能用到的Python package,然而这里有很大一个坑,Mac下面Anaconda是安装在
~/anaconda
目录下,要使用~/anaconda/bin/python
或~/anaconda/bin/ipython
而非原系统的Python,这要求所有Homebrew安装的包都必须通过Anaconda下的Python来执行,因此如果从一开始就打算用Anaconda,要注意修改环境变量。这里不使用Anaconda,注意Makefile.config中提到:
如果是通过Homebrew安装的numpy,需要添加numpy路径,否则会报错:
4. make
make all make test make runtest make pycaffe
都通过之后将
caffe/python/
添加到Python系统路径:测试一下:
5. Run ipython notebook
需要下载 BVLC GoogleNet Model到
path/to/caffe/models/bvlc_googlenet/
,然后就可以基于自己的图片,让它做梦给你看!6. Result
🍺
🍺
🍺
🍺
The text was updated successfully, but these errors were encountered: