README.md 934 字节
Newer Older
1 2 3 4
### caffe2fluid
    this tool is used to convert a caffe-model to paddle-model(fluid api)

### howto
L
liuyang11 已提交
5
    1, prepare caffepb.py in ./proto, two options provided
6 7 8 9 10 11
        option 1: generate it from caffe.proto using protoc
            bash ./proto/compile.sh

        option2: download one from github directly
            cd proto/ && wget https://github.com/ethereon/caffe-tensorflow/blob/master/kaffe/caffe/caffepb.py

L
liuyang11 已提交
12
    2, convert you caffe model using convert.py which will generate a python code and weight(in .npy)
13

L
liuyang11 已提交
14
    3, use the converted model to predict
15 16 17 18 19 20 21 22 23 24 25 26

    (see more detail info in 'tests/lenet/README.md')


### supported models
    lenet on mnist dataset

    resnets:(resnet50, resnet101, resnet152)
        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