From 4e3cdf0554002ab049a7a9cf82a5268d490dc6fc Mon Sep 17 00:00:00 2001 From: SunAhong1993 <48579383+SunAhong1993@users.noreply.github.com> Date: Sun, 21 Jul 2019 19:20:14 +0800 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 8a62c54..3b703e8 100644 --- a/README.md +++ b/README.md @@ -49,3 +49,23 @@ python x2paddle/convert.py --framework=tensorflow \ --model=../vgg16.pb \ --save_dir=paddle_model ``` +## 转换caffe SqueezeNet模型 + +### 步骤一 下载模型参数文件和proto文件 +``` +wget https://github.com/DeepScale/SqueezeNet/blob/master/SqueezeNet_v1.1/squeezenet_v1.1.caffemodel +wget https://github.com/DeepScale/SqueezeNet/blob/master/SqueezeNet_v1.1/deploy.prototxt +``` + +### 步骤二 模型转换 + +``` +git clone https://github.com/PaddlePaddle/X2Paddle.git +cd X2Paddle +git checkout develop +export PYTHONPATH=${PWD}:$PYTHONPATH +mkdir paddle_model +python x2paddle/convert.py --framework=caffe \ + --weight=../squeezenet_v1.1.caffemodel \ + --proto =../deploy.prototxt \ + --save_dir=paddle_model -- GitLab