tensflow andaconda 方式的安装

本文介绍了一个结合CNN、LSTM及注意力机制的深度学习模型用于OCR任务。首先利用滑动窗口的CNN提取图像特征,随后通过堆叠在CNN之上的LSTM处理时序信息,并采用注意力模型作为解码器生成最终输出。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Recusive Neural Network 与 recurrent neural network  网络

首先对这两个网络都不熟悉
这两个的区别在哪里,可以说明下不。
mandatory  强制性的

长期依赖(Long-Term Dependencies)问题

Visual Attention based OCR. The model first runs a sliding CNN on the image (images are resized to height 32 while preserving aspect ratio). Then an LSTM is stacked on top of the CNN. Finally, an attention model is used as a decoder for producing the final outputs.

这个包含三部分的内容:
A.  first runs a sliding CNN on the image  一个普通的cnn 网络 这是个什么样的网络
B.  an LSTM is stacked on top of the CNN
C.  an attention model is used as a decoder for producing the final outputs.

需要做的事情:
1. tensflow 的安装 参考官网 
打开了官网 但是发现有几种安装方式 但是不知道该按照那一种安装
咨询了CH 他说他试了两种方法 
一种是andaconda 和 源码安装 都可以 
他比较推荐andaconda 这种安装方法。
在网上找到安装方法:
http://blog.youkuaiyun.com/tina_ttl/article/details/51762471
对于我的电脑来说:
因为我之前装过caffe 所以andaconda 有安装
为了确认andaconda 生效 你需要在确认一下:
确认的方式是 vim ~/.bashrc
看下 andaconda 有没有在环境变量里面 如果不在的
请加入环境变量:
类似于:# added by Anaconda 2.3.0 installer
export PATH="/home/gjge/local/anaconda/bin:$PATH"
然后使它生效:
source ~/.bashrc
剩下的就是三部曲:
A.  conda create -n tensorflow python=2.7
B. source activate tensorflow
C. pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0rc0-cp27-none-linux_x86_64.whl

最后就是验证tensorflow 有没有安装成功
python
import tensorflow 



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值