Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
bcea641f
M
models
项目概览
PaddlePaddle
/
models
大约 1 年 前同步成功
通知
222
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
bcea641f
编写于
3月 02, 2018
作者:
L
liuyang11
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix formats in README.md
上级
2273e96a
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
37 addition
and
38 deletion
+37
-38
fluid/image_classification/caffe2fluid/README.md
fluid/image_classification/caffe2fluid/README.md
+17
-18
fluid/image_classification/caffe2fluid/tests/lenet/README.md
fluid/image_classification/caffe2fluid/tests/lenet/README.md
+20
-20
未找到文件。
fluid/image_classification/caffe2fluid/README.md
浏览文件 @
bcea641f
###
caffe2f
luid
###
Caffe2F
luid
this tool is used to convert a caffe-model to paddle-model(fluid api)
This tool is used to convert a Caffe model to Fluid model
###
h
owto
###
H
owto
1, p
repare caffepb.py in ./proto, two options provided
1, P
repare caffepb.py in ./proto, two options provided
option 1:
generate it from caffe.proto using protoc
1)
generate it from caffe.proto using protoc
bash ./proto/compile.sh
bash ./proto/compile.sh
option2:
download one from github directly
2)
download one from github directly
cd proto/ && wget https://github.com/ethereon/caffe-tensorflow/blob/master/kaffe/caffe/caffepb.py
cd proto/ && wget https://github.com/ethereon/caffe-tensorflow/blob/master/kaffe/caffe/caffepb.py
2, convert you
caffe model using convert.py which will generate a python code and weight(in .npy)
2, Convert the
caffe model using convert.py which will generate a python code and weight(in .npy)
3, use the converted model to predict
3, Use the converted model to predict
see more detail info in 'tests/lenet/README.md'
(see more detail info in 'tests/lenet/README.md')
### Supported models
-
Lenet on mnist dataset
### supported models
-
ResNets:(ResNet-50, ResNet-101, ResNet-152)
lenet on mnist dataset
resnets:(resnet50, resnet101, resnet152)
model addrs:(https://onedrive.live.com/?authkey=%21AAFW2-FVoxeVRck&id=4006CBB8476FF777%2117887&cid=4006CBB8476FF777)
model addrs:(https://onedrive.live.com/?authkey=%21AAFW2-FVoxeVRck&id=4006CBB8476FF777%2117887&cid=4006CBB8476FF777)
###
n
otes
###
N
otes
s
ome of this code come from here: https://github.com/ethereon/caffe-tensorflow
S
ome of this code come from here: https://github.com/ethereon/caffe-tensorflow
fluid/image_classification/caffe2fluid/tests/lenet/README.md
浏览文件 @
bcea641f
###
c
onvert lenet model from caffe format into paddle format(fluid api)
###
C
onvert lenet model from caffe format into paddle format(fluid api)
###
h
owto
###
H
owto
0, p
repare your caffepb.py
1, P
repare your caffepb.py
1, d
ownload a lenet caffe-model
2, D
ownload a lenet caffe-model
lenet_iter_10000.caffemodel
lenet_iter_10000.caffemodel
download address: https://github.com/ethereon/caffe-tensorflow/raw/master/examples/mnist/lenet_iter_10000.caffemodel
download address: https://github.com/ethereon/caffe-tensorflow/raw/master/examples/mnist/lenet_iter_10000.caffemodel
md5: cbec75c1c374b6c1981c4a1eb024ae01
md5: cbec75c1c374b6c1981c4a1eb024ae01
...
@@ -13,16 +13,16 @@
...
@@ -13,16 +13,16 @@
md5: 27384af843338ab90b00c8d1c81de7d5
md5: 27384af843338ab90b00c8d1c81de7d5
2, c
onvert this model(make sure caffepb.py is ready in ../../proto)
2, C
onvert this model(make sure caffepb.py is ready in ../../proto)
*
convert to npy format
convert to npy format
bash ./convert.sh lenet.prototxt lenet.caffemodel lenet.py lenet.npy
bash ./convert.sh lenet.prototxt lenet.caffemodel lenet.py lenet.npy
*
save to fluid format(optional)
save to fluid format(optional)
bash ./convert.sh lenet.prototxt lenet.caffemodel lenet.py lenet.npy && python ./lenet.py ./lenet.npy ./fluid.model
bash ./convert.sh lenet.prototxt lenet.caffemodel lenet.py lenet.npy && python ./lenet.py ./lenet.npy ./fluid.model
4, u
se this new model(paddle installed in this python)
4, U
se this new model(paddle installed in this python)
*
use fluid format
use fluid format
python ./predict.py ./fluid.model
python ./predict.py ./fluid.model
*
use npy format
use npy format
python ./predict.py ./lenet.npy
python ./predict.py ./lenet.npy
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录