-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caffe2fluid #617
Caffe2fluid #617
Conversation
…sification Add the text classification example for Fluid.
和@qiaolongfei讨论了下,觉得使用 https://github.com/ethereon/caffe-tensorflow 里的代码太多,这个tool总共超过10000行,可否:
或者其他更好的方案也行,也欢迎其他同学提供建议~ |
好的,我稍微精简下代码 |
… caffe2fluid support lenet and resnet conertion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve the first version.
@@ -0,0 +1,26 @@ | |||
### caffe2fluid | |||
this tool is used to convert a caffe-model to paddle-model(fluid api) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里可以不缩进。
this tool -> This tool xxx .
caffe-mode -> Caffe model
paddle-model -> Fludi model.
Remove fluid api.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -0,0 +1,26 @@ | |||
### caffe2fluid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
caffe2fluid -> Caffe2Fluid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
3, use the converted model to predict | ||
|
||
(see more detail info in 'tests/lenet/README.md') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
整体不用缩进。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
this tool is used to convert a caffe-model to paddle-model(fluid api) | ||
|
||
### howto | ||
1, prepare caffepb.py in ./proto, two options provided |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1, prepare -> 1. Prepare
后面相同,首字母都大写吧。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
option 1: generate it from caffe.proto using protoc | ||
bash ./proto/compile.sh | ||
|
||
option2: download one from github directly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
option 1 -> 1).
option2 -> 2).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
### caffe2fluid | ||
this tool is used to convert a caffe-model to paddle-model(fluid api) | ||
|
||
### howto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
howto -> HowTo
model addrs:(https://onedrive.live.com/?authkey=%21AAFW2-FVoxeVRck&id=4006CBB8476FF777%2117887&cid=4006CBB8476FF777) | ||
|
||
### notes | ||
some of this code come from here: https://github.com/ethereon/caffe-tensorflow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不需要缩进,line 20, line 22相同。首字母大写。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
(see more detail info in 'tests/lenet/README.md') | ||
|
||
|
||
### supported models |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
supported models -> Supported Models
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
|
||
### supported models | ||
lenet on mnist dataset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lenet -> LeNet
resnets->ResNets
resnet50 -> ResNet 50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
add support for converting a caffe-model to fluid-model