深度学习库安装与使用

http://blog.csdn.net/hjimce/article/details/51999566

Theano

windows下
  • Download Anaconda now!
  • conda install mingw libpython
  • pip install theano

Keras

git https://github.com/fchollet/keras.git

Windows下

https://keras-cn.readthedocs.io/en/latest/getting_started/keras_windows/

通过 conda install keraspip install keras直接安装。(会默认的给你安装keras最新版本和所需要的theano)

因为windows版本的tensorflow刚刚才推出,所以目前支持性不太好。但是keras的backend 同时支持tensorflow和theano. 并且默认是tensorflow, 因此在win本上需要更改backend为theano才能运行。Linux中切换backend同理!

  • 将C:\Anaconda2\Lib\site-packages\keras\backend\__init__.py的line 27修改:
# Default backend: TensorFlow.
#_BACKEND = 'tensorflow'
_BACKEND = 'theano'

then, python-> import keras

  • 出现 tensorflow提示错误的话,需要修改下面的位置的内容: C:\Users\Administrator\.keras\keras.json
{  
"image_dim_ordering":"tf",  
"epsilon":1e-07,  
"floatx":"float32",  
"backend":"tensorflow"  
}  

{  
    "image_dim_ordering": "tf",   
   
  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值