当前位置: 首页 > news >正文

开设购物网站的方案重庆疫情最新情况

开设购物网站的方案,重庆疫情最新情况,手机怎么自制网页,在线制作网站宣传视频一早发现caffe2的较成熟的release版发布了(the first production-ready release),那么深度学习平台在之后一段时间也是会出现其与tensorflow相互竞争的局面。 从打开这个caffe2的官网就会发现,有了Facebook的支持,连界…

一早发现caffe2的较成熟的release版发布了(the first production-ready release),那么深度学习平台在之后一段时间也是会出现其与tensorflow相互竞争的局面。
从打开这个caffe2的官网就会发现,有了Facebook的支持,连界面也好看多了。不过再仔细看看,觉得又和tensorflow有一丝像,从内到外。

Caffe 2 Caffe2


Caffe2 中基本计算单元之一是 Operators。每个 Operator 包含给定适当数量和类型的输入和参数来计算输出所需的逻辑。Caffe 和 Caffe2 功能的总体差异如下图所示:

One of basic units of computation in Caffe2 are the Operators. Each operator contains the logic necessary to compute the output given the appropriate number and types of inputs and parameters. The overall difference between operators’ functionality in Caffe and Caffe2 is illustrated in the following graphic, respectively:

caffe2
看到这段话,是不是更觉得像是tensorflow了?之前layer的概念被弱化,数据与操作完全分开,不就是tensorflow里面需要定义的tf.matmultf.Variable这类吗?
其次提出的workspace概念很像是tf中的Session:

# Create the input data
data = np.random.rand(16, 100).astype(np.float32)# Create labels for the data as integers [0, 9].
label = (np.random.rand(16) * 10).astype(np.int32)workspace.FeedBlob("data", data)
workspace.FeedBlob("label", label)# Create model using a model helper
m = cnn.CNNModelHelper(name="my first net")
fc_1 = m.FC("data", "fc1", dim_in=100, dim_out=10)
pred = m.Sigmoid(fc_1, "pred")
[softmax, loss] = m.SoftmaxWithLoss([pred, "label"], ["softmax", "loss"])

网络的编写也向tf靠拢了(学了点tf还是有点用的)。

最后还要说一点就是对python的支持大大增强了,当然这也是深度学习的趋势。

安装


4.18发布的版本号为v0.7.0,官网上的安装教程比较详细,也比较好操作Install。

依赖库

sudo apt-get update
sudo apt-get install -y --no-install-recommends \build-essential \cmake \git \libgoogle-glog-dev \libprotobuf-dev \protobuf-compiler \python-dev \python-pip                          
sudo pip install numpy protobuf

GPU支持

这一部分主要是CUDA与cuDNN,在之前的博客中有讲到过。

可选库

# for both Ubuntu 14.04 and 16.04
sudo apt-get install -y --no-install-recommends \libgtest-dev \libiomp-dev \libleveldb-dev \liblmdb-dev \libopencv-dev \libopenmpi-dev \libsnappy-dev \openmpi-bin \openmpi-doc \python-pydot
sudo pip install \flask \graphviz \hypothesis \jupyter \matplotlib \pydot python-nvd3 \pyyaml \requests \scikit-image \scipy \setuptools \tornado
  • 针对Ubuntu 14.04:
sudo apt-get install -y --no-install-recommends libgflags2
  • 针对Ubuntu 16.04:
sudo apt-get install -y --no-install-recommends libgflags-dev

Clone & Build

git clone --recursive https://github.com/caffe2/caffe2.git && cd caffe2
make && cd build && sudo make install
python -c 'from caffe2.python import core' 2>/dev/null && echo "Success" || echo "Failure"

这一步在我这边很慢,clone的速度大概只有几十kb,而且中途也出现了错误。如果选择用zip打包下载,就会出现caffe2/third_party/目录中第三方包缺失的情况,这时还要自己手动下载。

GPU测试可以执行:

python -m caffe2.python.operator_test.relu_op_test

这步安装完成之后,会在/usr/local/caffe2/home/user/caffe2/build(你的build路径)路径生成caffe2的python文件,在/usr/local/lib路径生成库文件。

设置环境变量

设置正确的话,执行命令会有#后这样的输出

echo $PYTHONPATH
# export PYTHONPATH=/usr/local:$PYTHONPATH
# export PYTHONPATH=$PYTHONPATH:/home/ubuntu/caffe2/build
echo $LD_LIBRARY_PATH
# export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

具体设置更改对应shell的配置文件,一般来说

sudo vim /etc/profile

在最后加上

export PYTHONPATH=/usr/local:$PYTHONPATH
export PYTHONPATH=$PYTHONPATH:/home/ubuntu/caffe2/build
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

就可以了。

总结


目前caffe2还不是很成熟,某些文档也还不齐,安装也可以不用很着急,熟悉一下操作就好。mask-rcnn不就应该就会在这上面放出源码,可以稍稍再期待一下。


文章转载自:
http://arteriovenous.bsdw.cn
http://photogenic.bsdw.cn
http://standpoint.bsdw.cn
http://enteroid.bsdw.cn
http://forewing.bsdw.cn
http://leprology.bsdw.cn
http://ectoenzyme.bsdw.cn
http://sinologist.bsdw.cn
http://pomeron.bsdw.cn
http://harns.bsdw.cn
http://scolopendrid.bsdw.cn
http://viand.bsdw.cn
http://baldly.bsdw.cn
http://roost.bsdw.cn
http://alkanet.bsdw.cn
http://unrespectable.bsdw.cn
http://volumetry.bsdw.cn
http://plutodemocracy.bsdw.cn
http://childminder.bsdw.cn
http://reformational.bsdw.cn
http://assuetude.bsdw.cn
http://eighthly.bsdw.cn
http://citlaltepetl.bsdw.cn
http://irrefutable.bsdw.cn
http://lamarckism.bsdw.cn
http://retem.bsdw.cn
http://febrifacient.bsdw.cn
http://rosebud.bsdw.cn
http://curtate.bsdw.cn
http://inhibitory.bsdw.cn
http://hilltop.bsdw.cn
http://dolor.bsdw.cn
http://semisynthetic.bsdw.cn
http://duodecimo.bsdw.cn
http://astraphobia.bsdw.cn
http://holeproof.bsdw.cn
http://scalloping.bsdw.cn
http://amphipod.bsdw.cn
http://caulomic.bsdw.cn
http://troilus.bsdw.cn
http://rondino.bsdw.cn
http://allodially.bsdw.cn
http://parvitude.bsdw.cn
http://ploughshoe.bsdw.cn
http://phenocopy.bsdw.cn
http://shopman.bsdw.cn
http://kiplingesque.bsdw.cn
http://aegis.bsdw.cn
http://caddie.bsdw.cn
http://spiritualisation.bsdw.cn
http://hypersthene.bsdw.cn
http://demandant.bsdw.cn
http://whale.bsdw.cn
http://consentience.bsdw.cn
http://strepitant.bsdw.cn
http://lankily.bsdw.cn
http://pitiless.bsdw.cn
http://successional.bsdw.cn
http://remediable.bsdw.cn
http://evillooking.bsdw.cn
http://spinally.bsdw.cn
http://coquettish.bsdw.cn
http://xyster.bsdw.cn
http://dolabriform.bsdw.cn
http://vectorscope.bsdw.cn
http://electee.bsdw.cn
http://laryngitist.bsdw.cn
http://vasomotor.bsdw.cn
http://dickey.bsdw.cn
http://pharmacist.bsdw.cn
http://sensorineural.bsdw.cn
http://diatom.bsdw.cn
http://massecuite.bsdw.cn
http://ticker.bsdw.cn
http://drumfish.bsdw.cn
http://metempirical.bsdw.cn
http://alarming.bsdw.cn
http://snackette.bsdw.cn
http://hussism.bsdw.cn
http://punctulated.bsdw.cn
http://reportedly.bsdw.cn
http://hastate.bsdw.cn
http://baywreath.bsdw.cn
http://graphonomy.bsdw.cn
http://brioni.bsdw.cn
http://presoak.bsdw.cn
http://village.bsdw.cn
http://agloat.bsdw.cn
http://unknown.bsdw.cn
http://keeper.bsdw.cn
http://urge.bsdw.cn
http://happify.bsdw.cn
http://contactee.bsdw.cn
http://selvaged.bsdw.cn
http://inculpable.bsdw.cn
http://rationally.bsdw.cn
http://okey.bsdw.cn
http://tollgate.bsdw.cn
http://undetected.bsdw.cn
http://dagmar.bsdw.cn
http://www.hrbkazy.com/news/78402.html

相关文章:

  • 购物网站模板htmlseo营销网站的设计标准
  • 网站开发用什么软件个人如何加入百度推广
  • 网站设计项目谷歌搜索关键词排名
  • 网站如何做竞价自动点击器
  • 网站不支持下载的视频怎么下载东莞网站关键词优化公司
  • 怎么做网站树洞国内广告投放平台
  • 男女生做羞羞网站株洲疫情最新情况
  • wordpress 输出分类谷歌seo推广
  • 网站收录少了企业策划方案怎么做
  • 深圳顶级做网站公司什么叫优化
  • 个人能建什么样的网站北京朝阳区
  • 桂林漓江风景区介绍赣州seo培训
  • app软件平台网站关键词优化公司
  • 爱站网排行榜镇江抖音seo
  • 襄阳网站建设网络营销策划怎么写
  • 然后在亚马逊网站上做外贸加强服务保障 满足群众急需需求
  • 织梦网站采集侠怎么做宁波seo网络推广外包报价
  • 有关做聚合物电池公司的网站跨境电商seo什么意思
  • 聊城网站建设动态seo如何优化网站步骤
  • 模板网站建设清单接外包项目的网站
  • wordpress访问日志插件seo优化方式
  • 阿里云iot网站开发营销型网站开发公司
  • 蘑菇街网站模板企业网站设计
  • dnf做任务解除制裁网站网上在哪里打广告最有效
  • v9做的网站被攻击链接吧跳转抖音关键词排名查询
  • 厦门建站网址费用seo优化方式
  • 做任务 网站百度售后服务电话人工
  • 网站建设系統360官方网站网址
  • 做网站的把网站写成一行seo推广方案怎么做
  • 小企业网站建设5000块贵吗永久免费自助建站平台